Skip to content

Commit

Permalink
Clipboard: Simple regression testie
Browse files Browse the repository at this point in the history
Signed-off-by: Søren Løvborg <soeren.j.loevborg@siemens.com>
  • Loading branch information
kwi-dk committed Apr 28, 2014
1 parent 5d45886 commit 53ce37f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions DISTFILES
Expand Up @@ -683,6 +683,7 @@ deviceup-01.testie
./test/standard:
BandwidthRatedUnqueue-01.testie
Classifier-01.testie
Clipboard-01.testie
DelayShaper-notifier-01.testie
FullNoteQueue-upstream-notifier-01.testie
Hub-01.testie
Expand Down
29 changes: 29 additions & 0 deletions test/standard/Clipboard-01.testie
@@ -0,0 +1,29 @@
%info
Test Clipboard.

%script
click CONFIG

%file CONFIG
clipboard :: Clipboard(0/1, 2/1, 9/1);

TimedSource(0.002, "Simplistic")
-> [0]clipboard[0]
-> Discard();

TimedSource(0.003, "Dance tour")
-> [0]clipboard;

TimedSource(0.004, "Ionize tub")
-> [0]clipboard;

TimedSource(0.001, ".a. is a .at,", LIMIT 4, STOP true)
-> [1]clipboard[1]
-> Print(CONTENTS ASCII)
-> Discard();

%expect stderr
13 | .a. is a .at,
13 | Sam is a cat,
13 | Dan is a rat,
13 | Ian is a bat,

0 comments on commit 53ce37f

Please sign in to comment.