Commit graph

3 commits

Author SHA1 Message Date
362af6f7bf Fixed number to decimal parsing, additional tests 2025-08-19 05:15:13 -05:00
648bd3bad0 tests: Add NUnit suite for InputInterpreter.Interpret covering arithmetic, comparisons, variables, := binding, arrays, soft errors, and timing
Adds InputInterpreterTests with:

- Arithmetic cases including precedence, hex/binary, exponent.
- Comparisons yielding numeric booleans.
- Variable assignment (::) and persistence across calls; unknown variable soft error.
- Expression binding (:=) re-evaluated at use-time; invalid expression soft error.
- Array assignment (->) and indexing; out-of-range and index-expression scenarios.
- String literal used as expression soft error.
- Divide-by-zero soft error (no thrown exception).
- LastExecutionTime measured across calls.

Each test asserts both the return value and NumericValue/StringValue for consistency.
2025-08-19 04:52:37 -05:00
2cfd01f06f Naming Convention fix 2025-08-19 04:50:05 -05:00
Renamed from src/tests/UnitTest1.cs (Browse further)