11var BitString = require ( '../lib/core' ) . BitString ;
2- var SpecialForms = require ( '../lib/core' ) . SpecialForms ;
32var Patterns = require ( '../lib/core' ) . Patterns ;
43var expect = require ( 'chai' ) . expect ;
54
@@ -11,19 +10,19 @@ describe('BitString', function(){
1110
1211 describe ( 'creation' , function ( ) {
1312 it ( 'create properly' , function ( ) {
14- let bs = SpecialForms . bitstring ( BitString . integer ( 1 ) ) ;
13+ let bs = new BitString ( BitString . integer ( 1 ) ) ;
1514 expect ( is_match ( bs . value , [ 1 ] ) ) . to . equal ( true ) ;
1615
17- bs = SpecialForms . bitstring ( BitString . binary ( "foo" ) ) ;
16+ bs = new BitString ( BitString . binary ( "foo" ) ) ;
1817 expect ( is_match ( bs . value , [ 102 , 111 , 111 ] ) ) . to . equal ( true ) ;
1918
20- bs = SpecialForms . bitstring ( BitString . integer ( 0 ) , BitString . binary ( "foo" ) ) ;
19+ bs = new BitString ( BitString . integer ( 0 ) , BitString . binary ( "foo" ) ) ;
2120 expect ( is_match ( bs . value , [ 0 , 102 , 111 , 111 ] ) ) . to . equal ( true ) ;
2221
23- bs = SpecialForms . bitstring ( BitString . float ( 3.14 ) ) ;
22+ bs = new BitString ( BitString . float ( 3.14 ) ) ;
2423 expect ( is_match ( bs . value , [ 64 , 9 , 30 , 184 , 81 , 235 , 133 , 31 ] ) ) . to . equal ( true ) ;
2524
26- bs = SpecialForms . bitstring ( BitString . signed ( BitString . integer ( - 100 ) ) ) ;
25+ bs = new BitString ( BitString . signed ( BitString . integer ( - 100 ) ) ) ;
2726 expect ( is_match ( bs . value , [ 156 ] ) ) . to . equal ( true ) ;
2827 } ) ;
2928 } ) ;
0 commit comments