Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniusnaumann committed Jan 12, 2024
1 parent c7e515f commit c506010
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example-code/types/array_type.galvan
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ single(alias_type(inherited(), "IntArray", array(plain("Int"))))
*/

/*# TRANSPILE
"pub(crate) type IntArray = std::collections::Vec<i64>;"
"pub(crate) type IntArray = ::std::vec::Vec<i64>;"
*/

type IntArray = [Int]
2 changes: 1 addition & 1 deletion example-code/types/optional_dict.galvan
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ single(

/*# TRANSPILE
"#[derive(Clone, Debug, PartialEq)] pub(crate) struct Foo {
pub(crate) bar: Option<std::collections::HashMap<String, String>>
pub(crate) bar: Option<::std::collections::HashMap<String, String>>
}"
*/

Expand Down
2 changes: 1 addition & 1 deletion example-code/types/result_type_implicit_error.galvan
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ single(alias_type(inherited(), "ImplicitError", result(plain("Int"), None)))
*/

/*# TRANSPILE
"pub(crate) type ImplicitError = anyhow::Result<i64>;"
"pub(crate) type ImplicitError = ::anyhow::Result<i64>;"
*/

type ImplicitError = Int!
2 changes: 1 addition & 1 deletion galvan-ast/tests/test_ast_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ mod test_utils {

pub fn member(receiver: &str, ident: &str) -> Expression {
MemberFieldAccess {
receiver: Ident::new(receiver),
receiver: vec![Ident::new(receiver).into()],
identifier: Ident::new(ident),
}
.into()
Expand Down

0 comments on commit c506010

Please sign in to comment.