test(parser): move over the validator tests and some misc tests to parser
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
---
|
||||
source: crates/aiken-lang/src/parser.rs
|
||||
description: "Code:\n\nuse aiken\n\n// some comment\n// more comments"
|
||||
---
|
||||
Module {
|
||||
name: "",
|
||||
docs: [],
|
||||
type_info: (),
|
||||
definitions: [
|
||||
Use(
|
||||
Use {
|
||||
as_name: None,
|
||||
location: 0..9,
|
||||
module: [
|
||||
"aiken",
|
||||
],
|
||||
package: (),
|
||||
unqualified: [],
|
||||
},
|
||||
),
|
||||
],
|
||||
kind: Validator,
|
||||
}
|
||||
24
crates/aiken-lang/src/snapshots/windows_newline.snap
Normal file
24
crates/aiken-lang/src/snapshots/windows_newline.snap
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
source: crates/aiken-lang/src/parser.rs
|
||||
description: "Code:\n\nuse aiken/list\r\n"
|
||||
---
|
||||
Module {
|
||||
name: "",
|
||||
docs: [],
|
||||
type_info: (),
|
||||
definitions: [
|
||||
Use(
|
||||
Use {
|
||||
as_name: None,
|
||||
location: 0..14,
|
||||
module: [
|
||||
"aiken",
|
||||
"list",
|
||||
],
|
||||
package: (),
|
||||
unqualified: [],
|
||||
},
|
||||
),
|
||||
],
|
||||
kind: Validator,
|
||||
}
|
||||
Reference in New Issue
Block a user