Skip to content

Commit

Permalink
Better names
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderOMara committed Nov 21, 2024
1 parent dc35c5e commit 3412fd0
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 8 deletions.
8 changes: 6 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
"license": "MIT",
"exports": {
".": "./mod.ts",
"./i24": "./i24.ts",
"./f16": "./f16.ts"
"./float": "./float/mod.ts",
"./float/16": "./float/16.ts",
"./f16": "./float/16.ts",
"./int": "./int/mod.ts",
"./int/16": "./int/24.ts",
"./i24": "./int/24.ts"
},
"imports": {
"@deno/dnt": "jsr:@deno/dnt@^0.41.3",
Expand Down
6 changes: 3 additions & 3 deletions f16.test.ts → float/16.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { assertEquals } from '@std/assert';

import { getFloat16, setFloat16 } from './f16.ts';
import f16 from './spec/f16.json' with { type: 'json' };
import f64i16 from './spec/f64i16.json' with { type: 'json' };
import { getFloat16, setFloat16 } from './16.ts';
import f16 from '../spec/f16.json' with { type: 'json' };
import f64i16 from '../spec/f64i16.json' with { type: 'json' };

const F16 = (f16 as (string | number)[]).map(Number);
const F64I16 = (f64i16 as (string | number)[][]).map((a) => a.map(Number)) as [
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions float/mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './16.ts';
2 changes: 1 addition & 1 deletion i24.test.ts → int/24.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assertEquals, assertThrows } from '@std/assert';

import { getInt24, getUint24, setInt24, setUint24 } from './i24.ts';
import { getInt24, getUint24, setInt24, setUint24 } from './24.ts';

Deno.test('getInt24 unsigned', () => {
const data = new Uint8Array([0x12, 0x34, 0x56]);
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions int/mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './24.ts';
4 changes: 2 additions & 2 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './f16.ts';
export * from './i24.ts';
export * from './float/mod.ts';
export * from './int/mod.ts';

0 comments on commit 3412fd0

Please sign in to comment.