Skip to content

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanderbeek123 authored and phildini committed Apr 25, 2020
1 parent fd2e57d commit fd992c1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/datatypes/test_str.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,16 @@ def test_too_many_arguments(self):
""")

@expectedFailure
def test_format(self):
self.assertCodeExecution("""
x = "{1},{2}".format("hello","world")
print(x)
""")
self.assertCodeExecution("""
x = "{},{}!".format("hello","world")
print(x)
""")

class UnaryStrOperationTests(UnaryOperationTestCase, TranspileTestCase):
data_type = 'str'
Expand Down

0 comments on commit fd992c1

Please sign in to comment.