【新增】添加引用第三方库toml

This commit is contained in:
niubinghui
2024-08-02 11:49:23 +08:00
parent b8fa59faa7
commit afe2017188
147 changed files with 4439 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
How to run the tests
===
```
% bash build.sh
% bash run.sh
Test: array-mixed-types-arrays-and-ints (invalid)
Expected an error, but no error was reported.
-------------------------------------------------------------------------------
Test: array-mixed-types-ints-and-floats (invalid)
Expected an error, but no error was reported.
-------------------------------------------------------------------------------
Test: array-mixed-types-strings-and-ints (invalid)
Expected an error, but no error was reported.
129 passed, 3 failed
```
Note: toml version 1.0 allows mixed types in arrays.

View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export GOBIN=$DIR
go install github.com/toml-lang/toml-test/cmd/toml-test@latest # install test suite

View File

@@ -0,0 +1 @@
x = [ {'a'= 1}, {'a'= 2} ]

View File

@@ -0,0 +1 @@
x = [1,2,3]

View File

@@ -0,0 +1 @@
x = {'a'= 1, 'b'= 2 }

5
thirdPart/tomlc99/test1/run.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
$DIR/toml-test $DIR/../toml_json