diff options
author | ywang <yw05@forksworld.de> | 2021-02-10 18:41:12 +0100 |
---|---|---|
committer | ywang <yw05@forksworld.de> | 2021-08-04 21:25:19 +0200 |
commit | 443ccefd20893023a45f9616d2956b3fa252b5e0 (patch) | |
tree | 3c644e1d3a36e9ed8fac98adea9ccffb4101505b /advtrains/tests | |
parent | f03d3d703d2199f9e6375823fd84bfe1e2975deb (diff) | |
download | advtrains-443ccefd20893023a45f9616d2956b3fa252b5e0.tar.gz advtrains-443ccefd20893023a45f9616d2956b3fa252b5e0.tar.bz2 advtrains-443ccefd20893023a45f9616d2956b3fa252b5e0.zip |
Fix A command after rebasing
Diffstat (limited to 'advtrains/tests')
-rw-r--r-- | advtrains/tests/atcjit_spec.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/advtrains/tests/atcjit_spec.lua b/advtrains/tests/atcjit_spec.lua index 6d8b3f4..638e5c8 100644 --- a/advtrains/tests/atcjit_spec.lua +++ b/advtrains/tests/atcjit_spec.lua @@ -167,5 +167,13 @@ end) describe("ATC track reusing malformed code", function() local t = {atc_command = "I?;"} - thisatc("Should report the invalid I statement", t, {}, "Invalid I statement", t) + thisatc("should report the invalid I statement", t, {}, "Invalid I statement", t) end) + +describe("ATC track that sets ARS modes", function() + local t = {atc_command = "A0WA1WAFWAT"} + thisatc("should disable ARS on the train with A0", t, {}, nil, {atc_wait_finish=true, ars_disable=true, atc_command="A1WAFWAT"}) + thisatc("should enable ARS on the train with A1", t, {}, nil, {atc_wait_finish=true, ars_disable=false, atc_command="AFWAT"}) + thisatc("should disable ARS on the train with AF", t, {}, nil, {atc_wait_finish=true, ars_disable=true, atc_command="AT"}) + thisatc("should enable ARS on the train with AT", t, {}, nil, {atc_wait_finish=true, ars_disable=false,}) +end)
\ No newline at end of file |