We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40b7c49 commit f43f997Copy full SHA for f43f997
t/02-select.t
@@ -0,0 +1,17 @@
1
+#!/usr/bin/perl
2
+use strict;
3
+use warnings;
4
+use Test::More;
5
+use CellBIS::SQL::Abstract;
6
+
7
+my $sql_abstract = CellBIS::SQL::Abstract->new();
8
+my $select1 = $sql_abstract->select('table_test', []);
9
+my $select2 = $sql_abstract->select('table_test', [], {
10
+ 'orderby' => 'id_mhs_kelas',
11
+ 'order' => 'asc',
12
+ 'limit' => '5'
13
+});
14
+ok($select1 eq 'SELECT * FROM table_test', "[$select1] is true");
15
+ok($select2 eq 'SELECT * FROM table_test ORDER BY id_mhs_kelas ASC LIMIT 5', "[$select2] is true");
16
17
+done_testing();
0 commit comments