From beac1c7ef35b8cfbca69c766c6b4eddc71e0098c Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Fri, 22 Dec 2023 12:18:59 +0300 Subject: [PATCH] #205: test works --- README.md | 2 +- itest/program.eo | 2 +- test/commands/test_foreign.js | 2 +- test/commands/test_test.js | 6 ++---- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 4caa7eb..27faa06 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Then, you write a simple [EO](https://www.eolang.org) program in `hello.eo` file in the current directory: ``` -[args...] > hello +[args] > hello QQ.io.stdout > @ "Hello, world!\n" ``` diff --git a/itest/program.eo b/itest/program.eo index 5f666a4..9c0625d 100644 --- a/itest/program.eo +++ b/itest/program.eo @@ -22,6 +22,6 @@ +alias story -[args...] > program +[args] > program QQ.io.stdout > @ story diff --git a/test/commands/test_foreign.js b/test/commands/test_foreign.js index 6f23b3d..9139ff7 100644 --- a/test/commands/test_foreign.js +++ b/test/commands/test_foreign.js @@ -35,7 +35,7 @@ describe('foreign', function() { fs.writeFileSync( path.resolve(home, 'src/simple.eo'), [ - '[args...] > app', + '[args] > app', ' QQ.io.stdout "Hello, world!" > @', ].join('\n') ); diff --git a/test/commands/test_test.js b/test/commands/test_test.js index 9918ce3..eb4f180 100644 --- a/test/commands/test_test.js +++ b/test/commands/test_test.js @@ -35,13 +35,11 @@ describe('test', function() { path.resolve(home, 'src/simple-test.eo'), [ '+junit', - '+alias org.eolang.hamcrest.assert-that', '', '[] > simple-comparison-works', - ' assert-that > @', + ' gt. > @', ' 10', - ' $.greater-than', - ' 5', + ' 5', ].join('\n') ); const stdout = runSync([