Fix some tests

This commit is contained in:
Richard Feldman 2024-01-07 00:00:37 -05:00
parent af8e9c7292
commit ff2704056e
No known key found for this signature in database
GPG Key ID: F1F21AA5B1D9E43B

View File

@ -731,7 +731,7 @@ mod test_snapshots {
#[test]
fn string_with_interpolation_in_middle() {
assert_segments(r#""Hi, \(name)!""#, |arena| {
assert_segments(r#""Hi, $(name)!""#, |arena| {
let expr = arena.alloc(Var {
module_name: "",
ident: "name",
@ -747,7 +747,7 @@ mod test_snapshots {
#[test]
fn string_with_interpolation_in_front() {
assert_segments(r#""\(name), hi!""#, |arena| {
assert_segments(r#""$(name), hi!""#, |arena| {
let expr = arena.alloc(Var {
module_name: "",
ident: "name",
@ -762,7 +762,7 @@ mod test_snapshots {
#[test]
fn string_with_interpolation_in_back() {
assert_segments(r#""Hello \(name)""#, |arena| {
assert_segments(r#""Hello $(name)""#, |arena| {
let expr = arena.alloc(Var {
module_name: "",
ident: "name",