Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
noanflaherty committed Nov 5, 2024
1 parent 53e1870 commit 6f3c4f8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ class MyDataClass:
"
`;

exports[`class > class with de-indented multi-line string 1`] = `
"class MyClass:
multiline_string: str = """Hello
World"""
"
`;

exports[`class > fields with annotation and initializer 1`] = `
"class Car:
color: str = "red"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,32 @@ exports[`TypeInstantiation > set 1`] = `
"
`;

exports[`TypeInstantiation > str 1`] = `
exports[`TypeInstantiation > str > should render a basic string 1`] = `
""hello"
"
`;

exports[`TypeInstantiation > str > should render a string containing newline characters 1`] = `
""""
####
"""
"
`;

exports[`TypeInstantiation > str > should render a string containing newline characters and quotes 1`] = `
""""She said \\"Hi\\"
He said \\"bye\\"
She said \\"okay then\\" """
"
`;

exports[`TypeInstantiation > str > should render a string containing quote 1`] = `
"'She said "hello!"'
"
`;

exports[`TypeInstantiation > tuple 1`] = `
"(1, "two", True)
"
Expand Down

0 comments on commit 6f3c4f8

Please sign in to comment.