Skip to content

Commit 0b35249

Browse files
committed
test cases fixes
1 parent 38e34cd commit 0b35249

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/.ipynb_checkpoints/test_Literals_in_Python-checkpoint.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@
3232
" assert x.imag == 3.14\n",
3333
" assert x.real == 0.0\n",
3434
"\n",
35+
"\n",
3536
"def test_string_literals():\n",
3637
" string_1 = 'Hello, world!'\n",
3738
" string_2 = \"Python programming\"\n",
3839
" string_3 = '''This is a\n",
39-
" multi-line string.'''\n",
40+
"multi-line string.''' # Adjusted indentation for consistency\n",
4041
" string_4 = \"\"\"This is another\n",
41-
" multi-line string.\"\"\"\n",
42+
"multi-line string.\"\"\" # Adjusted indentation for consistency\n",
4243
" string_5 = \"This is a newline:\\nAnd this is a tab:\\tHello\"\n",
4344
" string_6 = r\"C:\\Users\\Name\\Folder\"\n",
4445
" name = \"Alice\"\n",
@@ -62,17 +63,20 @@
6263
" byte_values = [byte for byte in string_9]\n",
6364
" assert byte_values == expected_bytes\n",
6465
"\n",
66+
"\n",
6567
"def test_boolean_literals():\n",
6668
" a = True + 4\n",
6769
" b = False + 10\n",
6870
"\n",
6971
" assert a == 5\n",
7072
" assert b == 10\n",
7173
"\n",
74+
"\n",
7275
"def test_special_literal():\n",
7376
" a = None\n",
7477
" assert a is None\n",
7578
"\n",
79+
"\n",
7680
"# Mocking user input to test the input function\n",
7781
"@patch('builtins.input', return_value='5') # Mocking input to return '5' when called\n",
7882
"def test_input_function(mock_input):\n",

0 commit comments

Comments
 (0)