From 84e12c3db9a1aa469473720be8d19674f5a9f33f Mon Sep 17 00:00:00 2001 From: vddCore Date: Fri, 24 May 2024 18:50:44 +0200 Subject: [PATCH] Add a missing test... --- .../EVIL.Ceres.LanguageTests/tests/001_constants.vil | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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