Skip to content

Commit

Permalink
Add a missing test...
Browse files Browse the repository at this point in the history
  • Loading branch information
vddCore committed May 24, 2024
1 parent 9b2d7d0 commit 84e12c3
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ fn interpolated_string_locals_and_globals {
'21.37, 12345, gmd'
);
}

#[test]
fn interpolated_string_symbol_prompt_only {
val b = "12345";
Expand All @@ -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);
}

0 comments on commit 84e12c3

Please sign in to comment.