Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moon test --update does nothing when using the native backend #506

Open
1 task done
tonyfettes opened this issue Dec 2, 2024 · 0 comments
Open
1 task done

moon test --update does nothing when using the native backend #506

tonyfettes opened this issue Dec 2, 2024 · 0 comments
Assignees

Comments

@tonyfettes
Copy link

Bug Report

Environment

OS

Operating System: macOS

MoonBit CLI Tools Version

moon 0.1.20241202 (28bfce6 2024-12-02) ~/Workspace/test/moonbit/test/.moon/bin/moon
moonc v0.1.20241202+6dccd5c47 ~/Workspace/test/moonbit/test/.moon/bin/moonc
moonrun 0.1.20241202 (28bfce6 2024-12-02) ~/Workspace/test/moonbit/test/.moon/bin/moonrun

Steps to Reproduce

$ moon new .
Created .
$ rm -rf src/lib
$ rm -rf src/main
$ cat > src/a_test.mbt << EOF
test {
}

test {
  inspect!([(1, b" \"", 0.3)], content=""
  )
}
EOF
$ cat > src/moon.pkg.json << EOF
{}
EOF
$ moon test --target=native -u
Auto updating expect tests and retesting ...

Total tests: 2, passed: 2, failed: 0.
$ cat src/a_test.mbt
test {
}

test {
  inspect!([(1, b" \"", 0.3)], content=""
  )
}

Expected Behavior

The content [(1, b"\x20\x22", 0.3)] should be correctly updated to the argument content.

Actual Behavior

Nothing happens

Checklist

  • (Optional) My case is minimal enough to be reproducible.
@tonyfettes tonyfettes changed the title moon update failed when using the native backend moon test --update does nothing when using the native backend Dec 2, 2024
@Young-Flash Young-Flash self-assigned this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants