diff --git a/VirtualMachine/Tests/EVIL.Ceres.LanguageTests/tests/001_constants.vil b/VirtualMachine/Tests/EVIL.Ceres.LanguageTests/tests/001_constants.vil index 32c3675..839cab4 100644 --- a/VirtualMachine/Tests/EVIL.Ceres.LanguageTests/tests/001_constants.vil +++ b/VirtualMachine/Tests/EVIL.Ceres.LanguageTests/tests/001_constants.vil @@ -87,6 +87,7 @@ fn interpolated_string_locals_and_globals { '21.37, 12345, gmd' ); } + #[test] fn interpolated_string_symbol_prompt_only { val b = "12345"; @@ -96,3 +97,14 @@ fn interpolated_string_symbol_prompt_only { '$, 12345' ); } + +#[test] +fn number_with_exponent { + val a = 1e+3; + val b = 2E2; + val c = 3E-2; + + assert.equal(a, 1000); + assert.equal(b, 200); + assert.equal(c, 0.03); +} \ No newline at end of file