Skip to content

Commit

Permalink
fixed comparison tests (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubikowski authored Oct 24, 2022
1 parent e267bb5 commit e108773
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const sortedByComparator = sort(setA, comparatorFunction);
```


[npm-image]: http://img.shields.io/npm/v/set-utilities
[npm-image]: https://img.shields.io/npm/v/set-utilities
[npm-url]: https://www.npmjs.org/package/set-utilities

[license-image]: https://img.shields.io/npm/l/set-utilities?color=blue
Expand Down
2 changes: 1 addition & 1 deletion test/comparisons/proper-subset.function.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it } from '@jest/globals';
import { properSubset } from '../../src';
import {empty, minimal, setA, setB, setC, setD, universal} from '../constants/testing-constants';
import { empty, minimal, setA, setB, setC, setD, universal } from '../constants/testing-constants';

describe('proper subset', () => {
it('no sets are proper subsets', () => {
Expand Down
6 changes: 3 additions & 3 deletions test/comparisons/superset.function.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, it } from '@jest/globals';
import {subset, superset} from '../../src';
import {empty, minimal, setA, setB, setC, setD, universal} from '../constants/testing-constants';
import { superset } from '../../src';
import { empty, minimal, setA, setB, setC, setD, universal } from '../constants/testing-constants';

describe('superset', () => {
it('no sets are superset', () => {
Expand Down Expand Up @@ -38,7 +38,7 @@ describe('superset', () => {
});

it('sets without value bijection are not supersets', () => {
expect(subset(setA, setD)).toBe(false);
expect(superset(setA, setD)).toBe(false);
});

it('any set is a superset of the empty set', () => {
Expand Down

0 comments on commit e108773

Please sign in to comment.