add changelog
[platform/upstream/gdbm.git] / tests / dbmdel00.at
1 # This file is part of GDBM.                                   -*- autoconf -*-
2 # Copyright (C) 2011 Free Software Foundation, Inc.
3 #
4 # GDBM is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
8 #
9 # GDBM is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with GDBM. If not, see <http://www.gnu.org/licenses/>. */
16
17 AT_SETUP([delete a record])
18 AT_KEYWORDS([dbm delete delete00 dbmdel00])
19
20 AT_CHECK([
21 AT_COMPAT_PREREQ
22 AT_SORT_PREREQ
23 num2word 1:10 | dtload test
24 dtdel test 8
25 dtdump test | sort -k1,2 -n
26 ],
27 [0],
28 [1      one
29 2       two
30 3       three
31 4       four
32 5       five
33 6       six
34 7       seven
35 9       nine
36 10      ten
37 ])
38
39 AT_CLEANUP
40