<commit_before>module Inrush.Tests

open Inrush
open NUnit.Framework

[<Test>]
let ``hello returns 42`` () =
  let result = Library.hello 42
  printfn "%i" result
  Assert.AreEqual(42,result)<commit_msg>Fix tests, working build.<commit_after>module Inrush.Tests

open Inrush
open Inrush.QueryTypes
open NUnit.Framework

[<Test>]
let ``Sanity check`` () =
    let select =
        SelectStatement({ Columns = 
                              Columns [ Sum(ColumnName "value")
                                        Name(ColumnName "bob") ]
                          Series = Single "test"
                          Where = Some (Equal(ColumnName "bob", String "bob"))
                          GroupBy = Some ([TimeGroup(Days 1);ColumnGroup(ColumnName "bob")] , None) })
    Assert.AreEqual("SELECT SUM(value), bob FROM \"test\" WHERE bob = \"bob\" GROUP BY time(1d), bob", show select)
{'fraction_non_alphanumeric': 0.12104072398190045, 'fraction_numerical': 0.00904977375565611, 'mean_word_length': 2.22992700729927, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1753816', 'n_tokens_mistral': 263, 'n_tokens_neox': 243, 'n_words': 71}