mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-15 01:45:02 +01:00
use cargo insta in parser
This commit is contained in:
parent
9e643b8acd
commit
ee01a9f5b5
64 changed files with 2212 additions and 423 deletions
33
src/parse/snapshots/script_lang__parse__test__modulo.snap
Normal file
33
src/parse/snapshots/script_lang__parse__test__modulo.snap
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
source: src/parse/test.rs
|
||||
assertion_line: 35
|
||||
expression: ast
|
||||
|
||||
---
|
||||
BinaryOp(
|
||||
BinaryOp {
|
||||
span: Span {
|
||||
start: 0,
|
||||
end: 0,
|
||||
},
|
||||
lhs: Literal(
|
||||
Number(
|
||||
10.0,
|
||||
Span {
|
||||
start: 0,
|
||||
end: 0,
|
||||
},
|
||||
),
|
||||
),
|
||||
rhs: Literal(
|
||||
Number(
|
||||
4.0,
|
||||
Span {
|
||||
start: 0,
|
||||
end: 0,
|
||||
},
|
||||
),
|
||||
),
|
||||
kind: Mod,
|
||||
},
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue