Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
Test --ascending and --descending
Browse files Browse the repository at this point in the history
  • Loading branch information
mdom committed Feb 25, 2016
1 parent 5449a04 commit d34fb8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ output_like(
qr{Rewrite url from http://127.0.0.1:[\d]+/alice.txt to /alice2.0.txt after 301.}
);

stdout_is( sub { run( 'timeline', '--ascending' ) }, <<'EOO');
2016-02-02 00:00 alice: Tweet!
2016-02-03 00:00 bob: Whoo!
EOO

stdout_is( sub { run('timeline') }, <<'EOO');
stdout_is( sub { run( 'timeline', '--descending' ) }, <<'EOO');
2016-02-03 00:00 bob: Whoo!
2016-02-02 00:00 alice: Tweet!
EOO
Expand Down

0 comments on commit d34fb8d

Please sign in to comment.