From 28bc065081afbd998b7c44b5f7cad566a7fc8ab0 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Tue, 16 Dec 2003 08:30:11 +0000 Subject: [PATCH] Added a test for the lag command and started on the sample command --- tests/Makefile.am | 1 + tests/lag.stat | 16 ---------------- tests/sample.stat | 7 +++---- 3 files changed, 4 insertions(+), 20 deletions(-) delete mode 100644 tests/lag.stat diff --git a/tests/Makefile.am b/tests/Makefile.am index b7c58ec0..ca1e5001 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -11,6 +11,7 @@ TESTS = command/aggregate.sh \ command/count.sh \ command/descriptives.sh \ command/flip.sh \ + command/lag.sh \ command/print.sh \ command/sort.sh \ command/split-file.sh \ diff --git a/tests/lag.stat b/tests/lag.stat deleted file mode 100644 index 5b9e936a..00000000 --- a/tests/lag.stat +++ /dev/null @@ -1,16 +0,0 @@ -title 'Test LAG'. - -data list /w 1. -begin data. -1 -2 -3 -4 -5 -end data. - -compute x=lag(w,1). -compute y=lag(x). -compute z=lag(w,2). -list. - diff --git a/tests/sample.stat b/tests/sample.stat index 9a2c0071..f630391b 100644 --- a/tests/sample.stat +++ b/tests/sample.stat @@ -1,6 +1,5 @@ -title 'Test SAMPLE utility'. -set seed=random. +set seed=2 data list /a 1-2. begin data. 1 @@ -14,6 +13,6 @@ begin data. 9 10 end data. -sample .5. -n 5. + +sample .5 . list. -- 2.30.2