Skip to content

Commit cb8fc47

Browse files
committed
update test
1 parent dc8fd77 commit cb8fc47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/Table_Tests/src/Database/Types/SQLite_Type_Mapping_Spec.enso

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from Standard.Base import all
2+
import Standard.Base.Errors.Illegal_Argument.Illegal_Argument
23

34
from Standard.Table import Aggregate_Column, Value_Type, Table, Bits
45
from Standard.Table.Errors import Invalid_Value_Type, Inexact_Type_Coercion
@@ -119,12 +120,13 @@ add_specs suite_builder =
119120
group_builder.specify "does not support creating tables with date/time values" <|
120121
t = Table.new [["a", [Date.today]], ["b", [Time_Of_Day.now]], ["c", [Date_Time.now]]]
121122
r1 = t.select_into_database_table data.connection table_name=(Name_Generator.random_name "date-time-table") temporary=True
122-
r1.should_fail_with Unsupported_Database_Type
123+
r1.should_fail_with Illegal_Argument
124+
r1.to_display_text . should_contain "Definition for column [a] is invalid"
125+
r1.to_display_text . should_contain "do not support Date/time types"
123126

124127
group_builder.specify "should be able to infer types for all supported operations" <|
125128
dialect = Dialect.sqlite
126129
internal_mapping = dialect.dialect_operations.operations_dict
127130
operation_type_mapping = SQLite_Type_Mapping.operations_dict
128131

129132
operation_type_mapping.keys.sort . should_equal internal_mapping.keys.sort
130-

0 commit comments

Comments
 (0)