Skip to content

Commit

Permalink
fix: make test working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
malivix committed Dec 10, 2023
1 parent 2588fa6 commit 20ee69e
Show file tree
Hide file tree
Showing 329 changed files with 3,654 additions and 306 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
source: parser/src/lexer/lexer.rs
description: "b\"hello\""
---
[
Token {
kind: Bytes,
value: Str(
"b\"hello\"",
),
start: 0,
end: 8,
},
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
source: parser/src/lexer/lexer.rs
description: "b\"world\""
---
[
Token {
kind: Bytes,
value: Str(
"b\"world\"",
),
start: 0,
end: 8,
},
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
source: parser/src/lexer/lexer.rs
description: "b\"\""
---
[
Token {
kind: Bytes,
value: Str(
"b\"\"",
),
start: 0,
end: 3,
},
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
source: parser/src/lexer/lexer.rs
description: "a = b\"hello\""
---
[
Token {
kind: Identifier,
value: Str(
"a",
),
start: 0,
end: 1,
},
Token {
kind: Assign,
value: None,
start: 2,
end: 3,
},
Token {
kind: Bytes,
value: Str(
"b\"hello\"",
),
start: 4,
end: 12,
},
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
source: parser/src/lexer/lexer.rs
description: "b'hello'"
---
[
Token {
kind: Bytes,
value: Str(
"b'hello'",
),
start: 0,
end: 8,
},
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
source: parser/src/lexer/lexer.rs
description: "b\"\"\"hello\"\"\""
---
[
Token {
kind: Bytes,
value: Str(
"b\"\"\"hello\"\"\"",
),
start: 0,
end: 12,
},
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
source: parser/src/lexer/lexer.rs
description: "b'''hello'''"
---
[
Token {
kind: Bytes,
value: Str(
"b'''hello'''",
),
start: 0,
end: 12,
},
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: parser/src/lexer/mod.rs
assertion_line: 965
description: "..."
---
[
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
source: parser/src/lexer/lexer.rs
description: "def a():\n ..."
---
[
Token {
kind: Def,
value: None,
start: 0,
end: 3,
},
Token {
kind: Identifier,
value: Str(
"a",
),
start: 4,
end: 5,
},
Token {
kind: LeftParen,
value: None,
start: 5,
end: 6,
},
Token {
kind: RightParen,
value: None,
start: 6,
end: 7,
},
Token {
kind: Colon,
value: None,
start: 7,
end: 8,
},
Token {
kind: NewLine,
value: None,
start: 8,
end: 9,
},
Token {
kind: Indent,
value: Indent(
1,
),
start: 9,
end: 13,
},
Token {
kind: Ellipsis,
value: None,
start: 13,
end: 16,
},
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: parser/src/lexer/mod.rs
assertion_line: 965
description: "f\"hello\""
---
[
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
source: parser/src/lexer/lexer.rs
description: "f'hello_{var}'"
---
[
Token {
kind: FStringStart,
value: Str(
"f'",
),
start: 0,
end: 2,
},
Token {
kind: FStringMiddle,
value: Str(
"hello_",
),
start: 2,
end: 8,
},
Token {
kind: LeftBracket,
value: None,
start: 8,
end: 9,
},
Token {
kind: Identifier,
value: Str(
"var",
),
start: 9,
end: 12,
},
Token {
kind: RightBracket,
value: None,
start: 12,
end: 13,
},
Token {
kind: FStringEnd,
value: Str(
"'",
),
start: 13,
end: 14,
},
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
source: parser/src/lexer/lexer.rs
description: "f\"world\""
---
[
Token {
kind: FStringStart,
value: Str(
"f\"",
),
start: 0,
end: 2,
},
Token {
kind: FStringMiddle,
value: Str(
"world",
),
start: 2,
end: 7,
},
Token {
kind: FStringEnd,
value: Str(
"\"",
),
start: 7,
end: 8,
},
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
source: parser/src/lexer/lexer.rs
description: "f\"\""
---
[
Token {
kind: FStringStart,
value: Str(
"f\"",
),
start: 0,
end: 2,
},
Token {
kind: FStringEnd,
value: Str(
"\"",
),
start: 2,
end: 3,
},
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
source: parser/src/lexer/lexer.rs
description: "a = f\"hello\""
---
[
Token {
kind: Identifier,
value: Str(
"a",
),
start: 0,
end: 1,
},
Token {
kind: Assign,
value: None,
start: 2,
end: 3,
},
Token {
kind: FStringStart,
value: Str(
"f\"",
),
start: 4,
end: 6,
},
Token {
kind: FStringMiddle,
value: Str(
"hello",
),
start: 6,
end: 11,
},
Token {
kind: FStringEnd,
value: Str(
"\"",
),
start: 11,
end: 12,
},
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
source: parser/src/lexer/lexer.rs
description: "f\"\"\"hello\"\"\""
---
[
Token {
kind: FStringStart,
value: Str(
"f\"\"\"",
),
start: 0,
end: 4,
},
Token {
kind: FStringMiddle,
value: Str(
"hello",
),
start: 4,
end: 9,
},
Token {
kind: FStringEnd,
value: Str(
"\"\"\"",
),
start: 9,
end: 12,
},
]
Loading

0 comments on commit 20ee69e

Please sign in to comment.