Michael Gehring
998d2dedb4
factor: reduce number of random tests
2015-09-28 10:38:04 +02:00
Michael Gehring
9ffa50848d
Fix test build
2015-09-28 09:52:27 +02:00
Christian Zinck
f31192d46a
enhanced numeric sort and new human readable sort
2015-08-30 20:06:33 -04:00
Joseph Crail
04014d314c
Add tests for cksum/sum.
2015-08-13 21:08:31 -07:00
Joseph Crail
cc4cf6049e
Add tests for touch.
2015-08-11 21:45:11 -04:00
Joseph Crail
e455ba5de1
Replace unstable set_file_times w/ external crate.
2015-08-11 21:45:11 -04:00
Joseph Crail
f03b22a65c
Stabilize several PathExt methods.
2015-07-31 16:21:06 -04:00
Joseph Crail
929474040b
Add tests for cut.
2015-07-31 00:14:58 -04:00
Alex Lyon
7c2ed679ab
Merge pull request #649 from jbcrail/fix-stdbuf-regression
...
Fix stdbuf regression.
2015-07-09 12:58:13 -07:00
Joseph Crail
b8ab2c125f
Fix stdbuf regression.
...
When replacing range_inclusive(), I introduced a bug when parsing
arguments. I added a smoke test to prevent basic regressions in the
future.
2015-07-09 15:23:14 -04:00
Joseph Crail
3270040778
Remove unused mutation from variables.
2015-07-08 22:24:02 -04:00
Joseph Crail
7b5d800104
Fix broken split tests.
...
I added a prefix to each test to isolate working files.
2015-07-05 23:35:32 -04:00
Joseph Crail
9f1dc98925
Add initial implementation for ln.
...
There are several areas needing improvement:
1) add tests for hard links
2) add implementation for uncommon flags (-d, -L, -n, -P, -r)
3) align error messages more closely with GNU implementation
2015-07-05 14:52:31 -04:00
Remi Rampin
85cb9aca94
Add a test
2015-06-30 23:17:16 -04:00
Joseph Crail
690a483a8a
Update to nightly build.
...
I updated the library dependencies, features, and deprecated methods.
2015-06-23 23:00:00 -04:00
Joseph Crail
dcfc23498e
Add tests for tac.
2015-06-06 22:33:56 -04:00
Joseph Crail
9bc33a43f9
Fix ptx tests on OS X.
...
For those systems that don't have ptx installed by default, I modified
the tests to use pre-calculated results to check against the GNU
implementation.
2015-06-05 19:55:02 -04:00
Joseph Crail
0df4918f2d
Fix split tests.
...
I added an additional regex dependency and converted strings to
Vec<u8>'s for the assertions.
2015-06-04 13:57:17 -04:00
Joseph Crail
23cb9541e7
Add initial tests for realpath.
2015-06-04 00:04:37 -04:00
Joseph Crail
4aed2eafa8
Move common methods into test library.
2015-06-04 00:04:10 -04:00
Joseph Crail
c3802bb69c
Add helper method for creating symlinks.
2015-06-04 00:03:25 -04:00
Joseph Crail
2dd90af92a
Add initial tests.
2015-06-03 01:41:56 -04:00
Joseph Crail
b25a344566
Add quiet and verbose flags to head.
2015-05-31 20:26:57 -04:00
Heather
6fa4cf8e74
Merge pull request #630 from jbcrail/refactor-test-method
...
Refactor method to auto-convert into byte array.
2015-05-31 08:46:47 +03:00
Joseph Crail
66e109f683
Fix broken tests.
2015-05-30 20:53:07 -04:00
Joseph Crail
62b9dc0326
Refactor method to auto-convert into byte array.
...
When creating tests, we could pass a String, &str, or [u8] to the
standard input. Previously, all arguments had to be manually converted
to a reference to a [u8]. This update makes it more ergonomic.
2015-05-30 19:12:49 -04:00
Joseph Crail
133a6c5563
Add initial tests for head.
2015-05-30 19:10:15 -04:00
dokaptur
5aa68eb716
printing version unified and tests
2015-05-30 13:48:53 +02:00
Joseph Crail
edb3295303
Move helper methods for tests to separate module.
2015-05-29 13:47:00 -04:00
Joseph Crail
2bde7872c5
Add tests for base64.
2015-05-28 23:25:13 -04:00
Nikita Ofitserov
c32e21fc01
Add a test for the 'env -' case
2015-05-27 00:49:50 +03:00
Joseph Crail
9d74bbe532
Add initial tests for hashsum.
2015-05-16 18:03:09 -04:00
Heather
3cc357e118
Merge pull request #601 from kwantam/master
...
improved Sieve implementation ; add `cargo update`
2015-05-16 08:25:23 +03:00
Joseph Crail
906ba3e24a
Add tests for unlink.
2015-05-15 20:11:54 -04:00
kwantam
e1dac4695e
improved Sieve implementation ; add cargo update
...
This commit adds `cargo update` to the distclean target in the
makefile. This updates the Cargo.lock file when clearing the
deps directory.
In addition, it adds a faster implementation of the Sieve of
Eratosthenes for use by `src/factor/gen_table.rs` and `test/factor.rs`.
2015-05-15 19:39:43 -04:00
Joseph Crail
497c04ad44
Add tests for rm.
2015-05-15 19:14:42 -04:00
Heather
f0e5c19ed4
Merge pull request #597 from jbcrail/update-mkdir
...
Update mkdir.
2015-05-14 07:16:11 +03:00
Joseph Crail
18da32f394
Fix mv.
2015-05-13 21:05:36 -04:00
Joseph Crail
7f3d4ebf5b
Update mkdir.
...
In addition to upgrading to the nightly build, I refactored the method
that creates the directories by switching from a recursive approach to
an iterative one. I also replaced the obsolete fs::mkdir() with a custom
method using fs::create_dir() and libc::chmod(). I added several
diagnostic messages that match the GNU implementation.
2015-05-13 16:38:11 -04:00
Joseph Crail
481fdd744a
Add tests for readlink.
2015-05-12 17:09:41 -04:00
Joseph Crail
28c21902c5
Fix nl.
...
Aside from the usual upgrades to sync with the nightly build, I fixed an
unwrap() panic when reading lines with only a newline. I also refactored
the repeated command calls to use helper functions.
2015-05-10 18:59:37 -04:00
Joseph Crail
82dbd02c03
Add initial test for tsort.
2015-05-09 23:38:48 -04:00
Heather
1f67aaaf8c
Merge pull request #585 from jbcrail/add-basename-split-tests
...
Add initial tests for basename/split.
2015-05-09 22:20:23 +03:00
Joseph Crail
08aea6d549
Add initial test for pwd.
2015-05-09 15:17:26 -04:00
Joseph Crail
9172bb9bd8
Add initial tests for false/true.
2015-05-09 15:17:16 -04:00
Joseph Crail
87e7cc9b44
Add initial tests for echo.
2015-05-09 15:17:01 -04:00
Joseph Crail
e700e0d2f4
Add initial tests for dirname.
2015-05-09 15:16:45 -04:00
Joseph Crail
646285f684
Add initial tests for basename.
2015-05-09 13:32:47 -04:00
Joseph Crail
234c81311f
Add initial tests for split.
...
I created random data to test several cases. I verified that the data is
split into the correct number of files and can also be reassembled into
the original file.
2015-05-09 13:32:30 -04:00
Joseph Crail
5878d9904e
Add tests for fold.
2015-05-08 00:58:43 -04:00