Colin Benner
0581d8f247
Simplify temperature handling
...
Use a single enum, `Degree`, wherever a temperature scale is referenced.
That way, we can a simplify `Conversion` and `Token`, as well as some
matches.
2019-10-19 20:25:56 -07:00
Tiffany Bennett
79aebd9a17
Fix warnings
2019-10-19 20:19:03 -07:00
Tiffany Bennett
294adcd6a3
Release v0.4.4
2019-01-15 20:29:03 -08:00
Tiffany Bennett
a7d76f922d
Fix warnings about AsciiExt
2019-01-15 20:28:32 -08:00
Tiffany Bennett
0755cb5f9d
Update rust-gmp
2019-01-15 20:23:37 -08:00
Tiffany Bennett
f6e4a9a00a
Remove changelog from readme (use tag descriptions instead)
2019-01-15 19:26:03 -08:00
Tiffany Bennett
832d03d48f
Merge pull request #37 from yzhs/flags
...
Handle command line arguments, addresses #29
2018-11-20 19:23:22 -08:00
Colin Benner
60e644d17d
Fix pattern in kcov invocation
...
The old pattern would ignore test executables whose file name ends with
a 'd'. This should not happen any longer
2018-11-20 22:26:35 +01:00
Colin Benner
5beb4ba987
Handle file not found gracefully
...
If the input file provided on the command line cannot be opened, reprt
an error, rather than unwrapping.
2018-11-20 07:13:13 +01:00
Colin Benner
e8dd3a0b9e
Also support -V
and --version
2018-11-20 07:13:02 +01:00
Colin Benner
94e7bd00b1
Support -
h and --help
...
Print a usage message when called with `-h` or `--help`, or when called
with the wrong number of arguments.
2018-11-20 07:11:57 +01:00
Tiffany Bennett
002a87d88b
Add Travis & Codecov badges to readme
2018-11-15 21:02:58 -08:00
Tiffany Bennett
8f7642efe9
Merge pull request #36 from yzhs/add-tests
...
Tests
2018-11-15 20:30:49 -08:00
Colin Benner
4a41da18c8
Fix typo
2018-11-15 22:32:36 +01:00
Colin Benner
5f37f1506c
Test chemical formulas containing larger numbers
2018-11-15 22:32:36 +01:00
Colin Benner
f7bf043836
Test formula.rs
2018-11-15 22:32:36 +01:00
Colin Benner
d54d410d15
Document what substance_from_formula
does
2018-11-15 22:32:36 +01:00
Colin Benner
f97a076f52
Test additional cases in date::attempt
2018-11-15 22:32:36 +01:00
Colin Benner
d609611454
Test parse_datepattern
2018-11-15 22:32:32 +01:00
Colin Benner
963e2494ec
Test try_decode
failure case
2018-11-15 22:31:46 +01:00
Colin Benner
9cf86a5839
Test more cases in parse_{weekday, monthname}
2018-11-15 22:31:46 +01:00
Colin Benner
a3e061f0ca
Test definition with doc
2018-11-15 22:31:46 +01:00
Colin Benner
67e98857de
Test conversion to list
2018-11-15 22:31:46 +01:00
Colin Benner
62459d05b5
Make sure there is no call on the right hand side
2018-11-15 22:31:46 +01:00
Colin Benner
ebb6326503
Test try_decode
2018-11-15 22:31:46 +01:00
Colin Benner
7c35cbc9f0
Test 'now' and date arithmetic
2018-11-15 22:31:46 +01:00
Colin Benner
caa504da6a
Test unspecified base
2018-11-15 22:31:46 +01:00
Colin Benner
cffc40b1b3
Test timezone conversion
2018-11-15 22:31:46 +01:00
Colin Benner
94de4c033a
Test escape sequences between single quotes
2018-11-15 22:31:46 +01:00
Colin Benner
72a4e8e01f
Add more tests for text_query
2018-11-15 22:31:46 +01:00
Colin Benner
ec3bc1273e
Test fractional seconds
2018-11-15 22:31:46 +01:00
Colin Benner
77cfd49454
Fix bug found by test_date_input
2018-11-15 22:31:46 +01:00
Colin Benner
54ffee9945
Another test for the date parser
2018-11-15 22:31:36 +01:00
Colin Benner
16ecadb90c
Add a few more tests for text_query.rs
2018-11-15 21:51:51 +01:00
Colin Benner
317f07c3b9
Start testing input in different bases
2018-11-15 21:51:51 +01:00
Colin Benner
f396f8176e
Add tests for binary function error cases
2018-11-15 21:51:51 +01:00
Colin Benner
cb0b3a1c46
Test error case in eval()
2018-11-15 21:51:51 +01:00
Colin Benner
0273571fb3
Test another case in eval()
2018-11-15 21:51:51 +01:00
Colin Benner
f2c22983b9
Add test for eval_outer_expr_unit_cond
2018-11-15 21:51:51 +01:00
Colin Benner
a99399260d
More tests for eval's helper functions
2018-11-15 21:51:51 +01:00
Colin Benner
1ce0f1c392
Test some functions
2018-11-15 21:51:51 +01:00
Colin Benner
36db08836d
Test more cases in eval()
2018-11-15 21:51:51 +01:00
Colin Benner
6a1d250694
Test try_decode
failure case
2018-11-15 21:51:51 +01:00
Colin Benner
8f6302adf0
Fix duplicate test name
2018-11-15 21:51:51 +01:00
Colin Benner
8e61076002
Test definition with doc
2018-11-15 21:51:51 +01:00
Colin Benner
43a12f96e2
Test chemical formulas containing larger numbers
2018-11-15 21:51:51 +01:00
Colin Benner
0f37dbf29d
Test formula.rs
2018-11-15 21:51:51 +01:00
Colin Benner
b70fdab6b6
Test conversion to list
2018-11-15 21:51:51 +01:00
Colin Benner
9248d49fdb
Make sure there is no call on the right hand side
2018-11-15 21:51:51 +01:00
Colin Benner
2bd02fd7a7
Test try_decode
2018-11-15 21:51:50 +01:00