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

2 corner case tests fail with ZSH #35

Closed
smondet opened this issue Jan 3, 2017 · 1 comment
Closed

2 corner case tests fail with ZSH #35

smondet opened this issue Jan 3, 2017 · 1 comment
Labels

Comments

@smondet
Copy link
Member

smondet commented Jan 3, 2017

(only with zsh)

    exits 27 Construct.(
        if_then_else (
          (getenv (string "HOME\000ME")) =$= string (Sys.getenv "HOME")
        )
          (return 12) (return 27)
      );

Fails with 12.

    exits 0 Construct.(
        let var = string "VVVVVVV" in
        let assert_or_return ret cond =
          if_then_else cond nop (seq [printf "Fail: %d" ret; fail]) in
        seq [
(* ... *)
          setenv ~var (string "Bouhoo\000bah\n");
          assert_or_return 12 (getenv var =$= string "Bouhoobah");
(* ... *)
      );

fails (this is undefined behavior anyway).

@smondet smondet added the tests label Feb 15, 2017
@smondet
Copy link
Member Author

smondet commented Sep 5, 2018

The Schism of The String Types fixed this a while ago.

@smondet smondet closed this as completed Sep 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant