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

File tests fail on Windows 7 #11

Open
oconnor0 opened this issue Oct 13, 2011 · 0 comments
Open

File tests fail on Windows 7 #11

oconnor0 opened this issue Oct 13, 2011 · 0 comments

Comments

@oconnor0
Copy link

Running the spec\_init.mag tests on Windows 7 (I assume other versions would have similar issues) reports 13 failed tests. It appears that my spec\lib\io\test_file.txt has \r\n as the newlines; I assume from Git. And the backslashes instead of forward slashes are a wonderful feature of Windows.

Executing specification...
FAIL: The method (file is File) read() should return the entire contents of the file.
      Expected one\ntwo\nthree but was one\r\ntwo\r\nthree
FAIL: The method (path is String) dirName should return all the components of filename except the last one.
      Expected /dir but was \dir
      Expected /path/to but was \path\to
      Expected /foo but was \foo
FAIL: The method (path is String) dirName should ignore a trailing '/'.
      Expected /foo but was \foo
FAIL: The method (path is String) dirName should handle edge cases.
      Expected ./b but was .\b
      Expected / but was \
      Expected / but was \
      Expected /foo but was \foo
      Expected /foo but was \foo
      Expected /foo/.. but was \foo\..
FAIL: The method execute(command is String) should Return a record of the output and exit code.
      Expected out: "hi\n", exit: 0 but was out: "hi\r\n", exit: 0
FAIL: The method executeOutput(command is String) should Return the output.
      Expected hi\n but was hi\r\n

Passed 552 out of 565 tests in 366ms.
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

1 participant