From dd089ea418ad9e8be587dd36c56284ebb848b0f4 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 29 Dec 2021 12:33:00 -0600 Subject: [PATCH] test(invalid): Mirror cargo test This is for #257 and #259 --- tests/fixtures/invalid/inline-table-newline.stderr | 6 ++++++ tests/fixtures/invalid/inline-table-newline.toml | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/fixtures/invalid/inline-table-newline.stderr create mode 100644 tests/fixtures/invalid/inline-table-newline.toml diff --git a/tests/fixtures/invalid/inline-table-newline.stderr b/tests/fixtures/invalid/inline-table-newline.stderr new file mode 100644 index 00000000..4d5de4b1 --- /dev/null +++ b/tests/fixtures/invalid/inline-table-newline.stderr @@ -0,0 +1,6 @@ +TOML parse error at line 7, column 11 + | +7 | native = { + | ^ +Unexpected ` +` diff --git a/tests/fixtures/invalid/inline-table-newline.toml b/tests/fixtures/invalid/inline-table-newline.toml new file mode 100644 index 00000000..726bf3d4 --- /dev/null +++ b/tests/fixtures/invalid/inline-table-newline.toml @@ -0,0 +1,9 @@ +[package] +name = "foo" +version = "0.0.0" +authors = [] + +[target.x86_64-apple-darwin.freetype] +native = { + foo: "bar" +}