Skip to content

Commit

Permalink
test for #10402
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed Jun 28, 2024
1 parent 0d5b019 commit 5394e1e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,10 @@ add_specs suite_builder setup =
Test.with_clue "t3[C].value_type="+vt.to_display_text+": " <|
vt.should_be_a (Value_Type.Char ...)
vt.variable_length.should_be_true

# Literal tables only make sense in the DB.
if setup.is_database then group_builder.specify "iif should work with literal tables" <|
literal_table = setup.light_table_builder [["X", [True, False, Nothing]], ["row_id", [1, 2, 3]]] . sort "row_id"
literal_table.at "X" . value_type . should_equal Value_Type.Boolean
c = literal_table.at "X" . iif 10 20
c.to_vector . should_equal [10, 20, Nothing]

0 comments on commit 5394e1e

Please sign in to comment.