diff options
author | Adrien Hopkins <ahopk127@my.yorku.ca> | 2021-10-04 18:26:58 -0500 |
---|---|---|
committer | Adrien Hopkins <ahopk127@my.yorku.ca> | 2021-10-04 18:26:58 -0500 |
commit | b59082c6b558705d4bd5effce2ae4b98c8a3ebe5 (patch) | |
tree | aeb0e9226436fe63e2cd4a558ffa0c4a2a07b7a9 /src/test/resources/test-dimensionfile-valid1.txt | |
parent | e35af3d2a4745eca2e6e1a70a694c40ed045617e (diff) |
Added tests for valid & invalid dimension files
Diffstat (limited to 'src/test/resources/test-dimensionfile-valid1.txt')
-rw-r--r-- | src/test/resources/test-dimensionfile-valid1.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/resources/test-dimensionfile-valid1.txt b/src/test/resources/test-dimensionfile-valid1.txt new file mode 100644 index 0000000..fc6a426 --- /dev/null +++ b/src/test/resources/test-dimensionfile-valid1.txt @@ -0,0 +1,12 @@ +LENGTH ! +MASS ! +TIME ! + +ENERGY MASS * LENGTH^2 / TIME^2 +POWER ENERGY / TIME + +# doesn't work, but would require major changes to fix properly +# for now, just don't use brackets in dimension expressions +# (note that the unit/prefix expressions use a complete hack +# to enable this, one that doesn't work for dimensions) +# POWER MASS * (LENGTH / TIME)^2 / TIME
\ No newline at end of file |