Skip to content

Commit

Permalink
Add test to check casing in input variables
Browse files Browse the repository at this point in the history
  • Loading branch information
daxida committed Mar 19, 2024
1 parent 6ea6652 commit 810e7e5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tests/render_py_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ print("baited, care spaces")
}

#[test]
fn test_stub_input() {
fn test_stub_input_1() {
let generator = r##"read init:int
read x:int
Expand Down Expand Up @@ -358,6 +358,21 @@ f = float(inputs[1]) # float
test_stub_builder(generator, expected);
}

#[test]
fn test_stub_input_2() {
let generator = r##"read A:int
INPUT case sensitive???
a : NEIN NEIN
A : ????
"##;

let expected = r##"a = int(input()) # ????
"##;

test_stub_builder(generator, expected);
}

#[test]
fn test_stub_everything() {
let generator = r##"write many spaces here
Expand Down

0 comments on commit 810e7e5

Please sign in to comment.