kwantam
cee1837879
slight clarification / refactoring in unexpand
...
This keeps equivalent functionality but makes the code slightly cleaner.
Also added one more test case.
2015-05-07 18:12:32 -04:00
Joseph Crail
b8fb64a35a
Fix broken seq tests.
2015-05-07 17:09:57 -04:00
Joseph Crail
0ea0e7504a
Add test for paste.
2015-05-07 16:51:55 -04:00
Joseph Crail
500bbbfa83
Fix env and add tests.
...
I updated env to use the nightly build. I also added several tests.
2015-05-06 23:59:58 -04:00
Heather
5ec1c7bea4
Merge pull request #570 from jbcrail/fix-sort-test
...
Fix failing test for sort.
2015-05-07 00:19:53 +03:00
Joseph Crail
8140208cd0
Check return value of read().
2015-05-06 13:37:57 -04:00
Joseph Crail
c31ad75226
Fix cp.
...
I used the new File/Path libraries. The canonicalize method made much of
paths_refer_to_same_file() redundant.
2015-05-05 19:42:38 -04:00
Joseph Crail
b809af601a
Fix failing test for sort.
...
The sorted values were not outputted using a newline.
2015-05-05 19:39:30 -04:00
Joseph Crail
5ec7f28625
Fix truncate and related tests.
2015-04-29 19:23:50 -04:00
kwantam
91827a594a
fix tr
and its test
...
In addition, this commit substantially reduces the number
of allocations that tr does when building the substitution
tables.
2015-04-29 01:31:16 -04:00
kwantam
feee266b20
fix/rewrite unexpand
and its tests
...
This is a reworked version of unexpand. I did this for two main
reasons:
1. The previous version of unexpand had issues correctly computing
tabstops when the `-a` flag was supplied.
2. The previous version assumed the input was UTF-8. This version works
with non-UTF-8 inputs.
3. This version has a new flag, -U, which forces unexpand to
treat input as 8-bit ASCII rather than interpreting it
as UTF-8. This might be handy in some cases.
2015-04-29 01:09:27 -04:00
kwantam
cc48e83e98
update cat, cat tests to new API
...
This commit updates the `cat` utility as well as its testbench
to work with the latest APIs.
2015-04-25 03:28:06 -04:00
Michael Gehring
906d3e4ec5
write -> write_all
2015-01-29 08:47:43 +01:00
Michael Gehring
d187dc574b
std::io -> std::old_io
2015-01-29 08:45:37 +01:00
Michael Gehring
58bd009a9e
Remove unused imports
2015-01-10 20:44:57 +01:00
Michael Gehring
4d6cbfa393
Disable unstable warnings for now
2015-01-10 20:44:56 +01:00
Michael Gehring
fd2536fc57
mv, sort, truncate: fix test build
2015-01-10 20:40:38 +01:00
Michael Gehring
1b381f49fa
Use new macro feature flags/attributes
2015-01-08 14:50:02 +01:00
Santiago Lapresta
8644b75a85
Fix deprecation warnings (into_string
=> to_owned
)
2014-12-25 19:33:09 +01:00
Haitao Li
9b67c372b2
Add semicolons to item macros
2014-12-22 10:54:29 +11:00
Michael Gehring
52ea352ca3
test/{seq,tr,truncate,unexpand}: fix build
2014-11-20 20:46:45 +01:00
Alex Lyon
03f26845d7
Merge pull request #432 from awestroke/more_mv_test_cases
...
More mv tests and use cases
2014-10-31 01:30:54 -07:00
Michael Gehring
3244416b19
fail! -> panic!
2014-10-30 10:06:47 +01:00
Orvar Segerström
019abb993e
More mv tests and use cases
2014-10-30 08:47:26 +01:00
Orvar Segerström
beba02757e
MV implementation
...
Support for all commandline options except one, see src/mv/mv.rs
Many tests, included a todo list of more tests too, see tests/mv.rs
2014-10-26 11:27:28 +01:00
Arcterus
ccc6772646
test: add some tests for -a and -o
2014-10-20 22:04:17 -07:00
Alex Lyon
ea5d67f8dc
Merge pull request #420 from skv-headless/move_util
...
move utility
2014-10-19 11:50:15 -07:00
skv
9f20647984
move_util
2014-10-19 22:41:11 +04:00
Michael Yin
bde6d8d643
basic byte and numeric sort
...
tests for numeric sort
2014-10-18 18:33:18 -04:00
Jay Shah
eb2415fb90
Introduce a test for `cp'.
2014-10-14 08:13:18 +01:00
Arcterus
8df93584c8
Remove warnings from the mkdir tests
2014-10-06 21:34:54 -07:00
Arcterus
01c2a0b9ff
Remove all warnings (at least on Linux)
2014-09-16 20:08:40 -07:00
Arcterus
01c681ecb3
Update for latest Rust
2014-09-16 19:10:27 -07:00
Virgile Andreani
49a733a864
Implement unexpand
2014-07-28 19:36:33 +02:00
Arcterus
439a8cadd1
Move tests out of src and into test
2014-07-21 14:44:30 -07:00
Arcterus
b7f4bd01bc
Move all of the utils into src
2014-07-20 20:20:55 -07:00
Arcterus
cb92f70aeb
test: fix build
2014-07-15 15:39:03 -07:00
Julian Orth
a4eb5c16f9
add test
2014-07-15 14:56:21 +02:00