Skip to content

Commit

Permalink
Agrego los fixtures de booleans-text
Browse files Browse the repository at this point in the history
  • Loading branch information
emilioplatzer committed Aug 24, 2017
1 parent 2e3b3cf commit 0b4fbb8
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/fixtures/booleans-text.in-opts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
detectBooleans: false
24 changes: 24 additions & 0 deletions test/fixtures/booleans-text.result.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
opts:
detectBooleans: false
columns:
- name: b1
type: character varying
inPrimaryKey: true
maxLength: 1
maxScale: null
hasNullValues: false
hasScientificNotation: null
- name: b2
type: integer
inPrimaryKey: true
maxLength: 1
maxScale: 0
hasNullValues: false
hasScientificNotation: null
- name: b3
type: character varying
inPrimaryKey: false
maxLength: 1
maxScale: null
hasNullValues: false
hasScientificNotation: null
11 changes: 11 additions & 0 deletions test/fixtures/booleans-text.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
create table "booleans-text" (
"b1" character varying(1),
"b2" integer,
"b3" character varying(1),
primary key ("b1", "b2")
);

insert into "booleans-text" ("b1", "b2", "b3") values
('t', 1, 'y'),
('t', 0, 'n'),
('f', 0, 'n');
4 changes: 4 additions & 0 deletions test/fixtures/booleans-text.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
b1;b2;b3
t;1;y
t;0;n
f;0;n
29 changes: 29 additions & 0 deletions test/fixtures/booleans-text.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
columns:
- name: b1
type: boolean
inPrimaryKey: true
maxLength: 1
maxScale: 0
hasNullValues: false
hasScientificNotation: null
- name: b2
type: boolean
inPrimaryKey: true
maxLength: 1
maxScale: 0
hasNullValues: false
hasScientificNotation: null
- name: b3
type: boolean
inPrimaryKey: false
maxLength: 1
maxScale: 0
hasNullValues: false
hasScientificNotation: null
- name: b4
type: boolean
inPrimaryKey: false
maxLength: 1
maxScale: 0
hasNullValues: true
hasScientificNotation: null

0 comments on commit 0b4fbb8

Please sign in to comment.