Fix linter errors
This commit is contained in:
+2
-2
@@ -40,8 +40,8 @@ describe('BF', () => {
|
||||
|
||||
it('prints "Hello World!"', () => {
|
||||
expect($s(run
|
||||
(_s('++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.'))
|
||||
(_s(''))))
|
||||
(_s('++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.'))
|
||||
(_s(''))))
|
||||
.toBe('Hello World!\n');
|
||||
});
|
||||
});
|
||||
|
||||
+6
-6
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from '@jest/globals';
|
||||
import { toNative as $$, L, _, fromNative as __, ___, undef } from '../src/core';
|
||||
import { toNative as $$, _, fromNative as __, ___, undef } from '../src/core';
|
||||
import { toNOrd as $o, NOrd } from '../src/ord';
|
||||
import { toBoolean as $b, iif } from '../src/bool';
|
||||
import { toNumber as $n, toNumber as $nn, Num, Succ, Zero, fromNumber as _n, fromNumber as _nn, cmp as cmpn, eq as eqn, even, gt as ngt, show as nshow, odd, succ, sum } from '../src/num';
|
||||
@@ -261,9 +261,9 @@ describe('List', () => {
|
||||
it('handles infinite lists', () => {
|
||||
expect($n(
|
||||
foldr
|
||||
(_(x => _(a => sum(x)(iif(eqn(_n(5))(x))(Zero)(a)))))
|
||||
(Zero)
|
||||
(infinite)))
|
||||
(_(x => _(a => sum(x)(iif(eqn(_n(5))(x))(Zero)(a)))))
|
||||
(Zero)
|
||||
(infinite)))
|
||||
.toBe(15);
|
||||
});
|
||||
});
|
||||
@@ -284,8 +284,8 @@ describe('List', () => {
|
||||
it.failing('handles infinite lists', () => {
|
||||
expect($n(
|
||||
foldrz
|
||||
(_(x => _(a => sum(x)(iif(eqn(_n(5))(x))(Zero)(a)))))
|
||||
(infinite)))
|
||||
(_(x => _(a => sum(x)(iif(eqn(_n(5))(x))(Zero)(a)))))
|
||||
(infinite)))
|
||||
.toBe(15);
|
||||
});
|
||||
});
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from '@jest/globals';
|
||||
import { ___, L, undef } from '../src/core';
|
||||
import { ___, undef } from '../src/core';
|
||||
import { toNOrd as $o, NOrd } from '../src/ord';
|
||||
import { toBoolean as $b, fromBoolean as _b } from '../src/bool';
|
||||
import { toNumber as $n, Num, Succ, Zero, fromNumber as _n, cmp, div, eq, ge, gt, ifz, le, lt, mod, mul, pred, show, sub, succ, sum } from '../src/num';
|
||||
|
||||
+2
-3
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from '@jest/globals';
|
||||
import { L, _, ___, undef } from '../src/core';
|
||||
import { _, ___, undef } from '../src/core';
|
||||
import { NOrd, toNOrd } from '../src/ord';
|
||||
import { toBoolean as $b } from '../src/bool';
|
||||
import { toNumber as $n, Zero, gt as ngt } from '../src/num';
|
||||
@@ -37,7 +37,7 @@ describe('String', () => {
|
||||
});
|
||||
});
|
||||
|
||||
// describe('repeat', () => {
|
||||
// describe('repeat', () => {
|
||||
// it('repeat "a" is "aaa..."', () => {
|
||||
// expect($na(
|
||||
// repeat(_s('a'))<String>(_((x0: Char) => _((x1s: String) =>
|
||||
@@ -55,7 +55,6 @@ describe('String', () => {
|
||||
// });
|
||||
// });
|
||||
|
||||
|
||||
describe('empty', () => {
|
||||
it('empty "" is True', () => {
|
||||
expect($b(empty(_s('')))).toEqual(true);
|
||||
|
||||
Reference in New Issue
Block a user