Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed May 18, 2023
1 parent df400f4 commit 32f9772
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion distribution/lib/Standard/Table/0.0.0-dev/src/Errors.enso
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ type Conversion_Failure
rows_info = case self.affected_rows_count of
Nothing -> "Some values"
count -> count.to_text+" rows"
rows_info + "could not be converted into the target type "+self.target_type.to_display_text+" when converting the column ["+self.related_column+"]."
rows_info + " could not be converted into the target type "+self.target_type.to_display_text+" when converting the column ["+self.related_column+"]."

type Invalid_Value_For_Type
## PRIVATE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ spec setup =
t2.at "W" . value_type . is_text . should_be_true

t2.at "X" . to_vector . should_equal ["1", "2", "3000"]
t2.at "Y" . to_vector . should_equal ["true", "false", "true"]
# Depending on the backend, the case of True/False literals may differ.
t2.at "Y" . to_vector . map (_.to_case Case.Lower) . should_equal ["true", "false", "true"]
t2.at "Z" . to_vector . should_equal ["1.5", "0.125", "-2.5"]
t2.at "W" . to_vector . should_equal ["a", "DEF", "a slightly longer text"]

Expand Down Expand Up @@ -160,7 +161,7 @@ spec setup =
c.value_type . should_equal Value_Type.Integer
c.to_vector . should_equal [1, 2, max_long, Nothing, min_long, Nothing, 4]
warning = Problems.expect_warning Conversion_Failure c
warning.to_display_text . should_contain "information was lost in 2 rows"
warning.to_display_text . should_contain "2 rows could not be converted"

if supports_dates then
Test.group prefix+"Table/Column.cast - date/time" <|
Expand Down

0 comments on commit 32f9772

Please sign in to comment.