Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed May 25, 2022
1 parent 7fd9c8c commit c984f67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@
- [Integrated value parsing with the `Delimited` file reader.][3463]
- [Implemented the `Infer` setting for headers in the `Delimited` file format
and made it the default.][3472]
- [Implemented a `Table.from Text` conversion allowing to parse strings
representing `Delimited` files without storing them on the filesystem.][3478]

[debug-shortcuts]:
https://github.com/enso-org/enso/blob/develop/app/gui/docs/product/shortcuts.md#debug
Expand Down Expand Up @@ -199,6 +201,7 @@
[3462]: https://github.com/enso-org/enso/pull/3462
[3463]: https://github.com/enso-org/enso/pull/3463
[3472]: https://github.com/enso-org/enso/pull/3472
[3478]: https://github.com/enso-org/enso/pull/3478

#### Enso Compiler

Expand Down
10 changes: 5 additions & 5 deletions test/Table_Tests/src/Csv_Spec.enso
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ spec =
c_3 = ["c", [Nothing, 6, 9, 12]]
expected_table = Table.new [c_1, c_2, c_3]

Test.group "Table.from_csv" <|
Test.group "Table.from Text" <|
Test.specify "should create a table from a textual CSV" <|
file_contents = (Enso_Project.data / "simple_empty.csv") . read_text
table = Table.from_csv file_contents
table = Table.from file_contents
table.should_equal expected_table

Test.specify "should create a table from a CSV in a file" <|
file_contents = (Enso_Project.data / "simple_empty.csv")
table = Table.from_csv file_contents
file = (Enso_Project.data / "simple_empty.csv")
table = file.read
table.should_equal expected_table

Test.specify "should create an error when given the wrong input" <|
Table.from_csv [] . should_fail_with Csv.Parse_Error
Table.from . should_fail_with Csv.Parse_Error

Test.group "Parsing" <|
Test.specify "should parse a simple numeric table" <|
Expand Down

0 comments on commit c984f67

Please sign in to comment.