@@ -21,20 +21,7 @@ fc.configureGlobal({
2121} ) ;
2222
2323test ( 'takeChar' , async t => {
24- await t . test ( 'binary' , ( ) => {
25- fc . assert (
26- fc . property (
27- fc . string ( { unit : 'binary' , minLength : 1 , maxLength : 1 } ) ,
28- // @ts -ignore
29- fc . string ( { unit : 'grapheme' } ) ,
30- ( data , extra ) => {
31- return takeChar ( data + extra , 0 ) . length === 1 ;
32- }
33- ) ,
34- ) ;
35- } ) ;
36-
37- await t . test ( 'binary (ascii)' , ( ) => {
24+ await t . test ( 'ascii' , ( ) => {
3825 fc . assert (
3926 fc . property (
4027 fc . string ( { unit : 'binary-ascii' , minLength : 1 , maxLength : 1 } ) ,
@@ -62,21 +49,8 @@ test('takeChar', async t => {
6249 } ) ;
6350} ) ;
6451
65- test ( 'takeChar' , async t => {
66- await t . test ( 'binary' , ( ) => {
67- fc . assert (
68- fc . property (
69- fc . string ( { unit : 'binary' , minLength : 1 , maxLength : 1 } ) ,
70- // @ts -ignore
71- fc . string ( { unit : 'grapheme' } ) ,
72- ( data , extra ) => {
73- return takeCodePoint ( data + extra , 0 ) === ( data + extra ) . codePointAt ( 0 ) ;
74- } ,
75- ) ,
76- ) ;
77- } ) ;
78-
79- await t . test ( 'binary (ascii)' , ( ) => {
52+ test ( 'takeCodePoint' , async t => {
53+ await t . test ( 'ascii' , ( ) => {
8054 fc . assert (
8155 fc . property (
8256 fc . string ( { unit : 'binary-ascii' , minLength : 1 , maxLength : 1 } ) ,
0 commit comments