Skip to content

Commit

Permalink
Char not Text.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdunkerley committed Nov 14, 2024
1 parent 611c587 commit 4bb2a2c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/Table_Tests/src/In_Memory/Table_Spec.enso
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,17 @@ add_specs suite_builder =
r.column_names . should_equal ["foo", "bar"]
r.columns.map .value_type . should_equal [Value_Type.Float, Value_Type.Boolean]

r_2 = Table.input [["foo", ["1", "2", "3"], Value_Type.Float], ["bar", ["False", "True", "false"], Value_Type.Text]]
r_2 = Table.input [["foo", ["1", "2", "3"], Value_Type.Float], ["bar", ["False", "True", "false"], Value_Type.Char]]
r_2.column_names . should_equal ["foo", "bar"]
r_2.columns.map .value_type . should_equal [Value_Type.Float, Value_Type.Text]
r_2.columns.map .value_type . should_equal [Value_Type.Float, Value_Type.Char]

r_3 = Table.input [["foo", ["1.0", "2.0", "3.0"], Value_Type.Integer], ["bar", ["False", "True", "False"], Auto]]
r_3.column_names . should_equal ["foo", "bar"]
r_3.columns.map .value_type . should_equal [Value_Type.Float, Value_Type.Boolean]
r_3.columns.map .value_type . should_equal [Value_Type.Integer, Value_Type.Boolean]

r_4 = Table.input [["foo", ["2023-01-04", "2024-10-02"], Value_Type.Date], ["bar", ["1.0", "2.0"], Value_Type.Text], ["baz", ["12:34:56", "23:45"]]]
r_4 = Table.input [["foo", ["2023-01-04", "2024-10-02"], Value_Type.Date], ["bar", ["1.0", "2.0"], Value_Type.Char], ["baz", ["12:34:56", "23:45"]]]
r_4.column_names . should_equal ["foo", "bar", "baz"]
r_4.columns.map .value_type . should_equal [Value_Type.Date, Value_Type.Text, Value_Type.Time]
r_4.columns.map .value_type . should_equal [Value_Type.Date, Value_Type.Char, Value_Type.Time]

group_builder.specify "should allow creating Enso code from a Table" <|
r = Table.new [["foo", [1, 2, 3]], ["bar", [False, True, False]]]
Expand Down

0 comments on commit 4bb2a2c

Please sign in to comment.