Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/Empty-string/Diego/empty-string-1.diego
Normal file
2
Task/Empty-string/Diego/empty-string-1.diego
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
add_str(s,⟦⟧); // empty string
|
||||
add_str(n); // null string (␀)
|
||||
17
Task/Empty-string/Diego/empty-string-2.diego
Normal file
17
Task/Empty-string/Diego/empty-string-2.diego
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
add_str(es,⟦⟧);
|
||||
add_bool(isEmpty)
|
||||
()_check⟦[es]==⟦⟧⟧;
|
||||
()_if⟦[es]≍⟦⟧⟧;
|
||||
()_calc({bool},⟦[es]==⟦⟧⟧);
|
||||
()_test⟦[lens]≍0⟧_lento(lens,⟦[es]⟧);
|
||||
()_is⟦[lens]>0⟧_lento(lens,⟦[es]⟧);
|
||||
()_check⟦[es]===({str},⟦⟧)⟧;
|
||||
()_if⟦[es]≡({str},⟦⟧)⟧;
|
||||
()_calc⟦≣[es]⟧_forme()_forall();
|
||||
()_not⟦[es]≠⟦⟧⟧;
|
||||
()_not()_bool[es];
|
||||
()_empty[es];
|
||||
(es)_equal⟦⟦⟧⟧;
|
||||
;
|
||||
log_console()_(isEmpty);
|
||||
log_console()_is(es); // is not null
|
||||
16
Task/Empty-string/Diego/empty-string-3.diego
Normal file
16
Task/Empty-string/Diego/empty-string-3.diego
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
add_str(s,⟦text⟧);
|
||||
add_bool(isNotEmpty)
|
||||
()_check⟦[s]!=⟦⟧⟧;
|
||||
()_if⟦[s]≭⟦⟧⟧;
|
||||
()_calc({bool},⟦[s]≠⟦⟧⟧);
|
||||
()_test⟦[lens]≠0⟧_lento(lens,⟦[s]⟧);
|
||||
()_is⟦[lens]<0⟧_lento(lens,⟦[s]⟧);
|
||||
()_check⟦[s]!==({str},⟦⟧)⟧;
|
||||
()_if⟦[s]≢({str},⟦⟧)⟧;
|
||||
()_calc⟦!≣[s]⟧_forme()_forany();
|
||||
()_bool[s];
|
||||
()_not()_empty[s];
|
||||
(s)_notequal⟦⟦⟧⟧;
|
||||
;
|
||||
log_console()_(isNotEmpty);
|
||||
log_console()_is(s); // is not null
|
||||
12
Task/Empty-string/Diego/empty-string-4.diego
Normal file
12
Task/Empty-string/Diego/empty-string-4.diego
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
add_str(n);
|
||||
add_bool(isNull)
|
||||
()_check⟦![n]⟧;
|
||||
()_calc({bool},⟦¬[n]⟧);
|
||||
()_isnull[n];
|
||||
()_not[n];
|
||||
()_isnull()_bool[n];
|
||||
()_none[n];
|
||||
()_any[n]_forme();
|
||||
(n)_equal⟦␀⟧;
|
||||
;
|
||||
log_console()_(isNull);
|
||||
Loading…
Add table
Add a link
Reference in a new issue