-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update inline tests for all cases (#394)
* Update python files for testing * update tests * fix format
- Loading branch information
1 parent
47a5cd8
commit 7b57e15
Showing
5 changed files
with
285 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
some_list = [1, 2, 3, 7] | ||
x = 3 | ||
if (n := len(some_list)) > x: | ||
print(f"The length of some_list is {n}, which is greater than {x}.") | ||
else: | ||
print(f"The length of some_list is {n}, which is not greater than {x}.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
var1 = 5 | ||
var2 = 7 | ||
var1, var2 = 7, 6 | ||
var3 = "hola" | ||
var4 = {"a": 1, "b": 2} | ||
var5 = [1, 2, 3] | ||
var6 =var1 + var2 | ||
var6 = var1 + var2 |
Oops, something went wrong.