Skip to content

Commit a42ee40

Browse files
authored
Merge branch 'master' into dependabot/npm_and_yarn/types/node-20.3.3
2 parents 5a8145e + 5e971b6 commit a42ee40

18 files changed

+604
-214
lines changed

__tests__/Adder.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class MyAdder extends Adder {
2929
}
3030
}
3131

32-
public getProxy(port: IOPort<unknown>) {
32+
public getProxy<T>(port: IOPort<T>) {
3333
return this.writable(port);
3434
}
3535
}

__tests__/HierarchicalSingleEvent.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {Logger} from "../src/share/Logger";
1212

1313
class SEContainer extends Reactor {
1414
// Made these public to accommodate the test below.
15-
public o: OutPort<any> = new OutPort<any>(this);
15+
public o: OutPort<string> = new OutPort(this);
1616

1717
public child = new SingleEvent<string>(this, new Parameter("Foo"));
1818

@@ -24,7 +24,7 @@ class SEContainer extends Reactor {
2424

2525
class LogContainer extends Reactor {
2626
// Made these public to accommodate the test below.
27-
public i: InPort<any> = new InPort<any>(this);
27+
public i: InPort<string> = new InPort(this);
2828

2929
public child: Logger = new Logger(this, "Foo");
3030

__tests__/SingleEvent.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {SingleEvent} from "../src/share/SingleEvent";
33
import {Logger} from "../src/share/Logger";
44

55
class SETest extends App {
6-
singleEvent: SingleEvent<any>;
6+
singleEvent: SingleEvent<string>;
77

88
logger: Logger;
99

__tests__/dependencies.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import {Priority, Sortable, ReactionGraph} from "../src/core/internal";
1+
import {Priority, Sortable, ReactionGraph, dontIndent} from "../src/core/internal";
22
import {
33
Reactor,
44
App,
55
InPort,
66
SortablePrecedenceGraph,
77
PrioritySet,
88
Log,
9-
StringUtil
109
} from "../src/core/internal";
1110

1211
// Log.setGlobalLevel(Log.levels.DEBUG);
@@ -94,7 +93,7 @@ describe("Manually constructed precedence graphs", () => {
9493
expect(graph.size()[0]).toEqual(6); // V
9594
expect(graph.size()[1]).toEqual(7); // E
9695
expect(graph.toString()).toBe(
97-
StringUtil.dontIndent`graph
96+
dontIndent`graph
9897
0["app.R[R3]"]
9998
1["app.R[R5]"]
10099
2["app.R[R4]"]
@@ -126,7 +125,7 @@ describe("Manually constructed precedence graphs", () => {
126125
expect(graph.size()[0]).toEqual(6); // V
127126
expect(graph.size()[1]).toEqual(6); // E
128127
expect(graph.toString()).toBe(
129-
StringUtil.dontIndent`graph
128+
dontIndent`graph
130129
0["app.R[R3]"]
131130
1["app.R[R5]"]
132131
2["app.R[R4]"]
@@ -148,7 +147,7 @@ describe("Manually constructed precedence graphs", () => {
148147
expect(graph.size()[1]).toEqual(3); // E
149148
Log.global.debug(graph.toString());
150149
expect(graph.toString()).toBe(
151-
StringUtil.dontIndent`graph
150+
dontIndent`graph
152151
0["app.R[R3]"]
153152
1["app.R[R5]"]
154153
2["app.R[R4]"]
@@ -168,7 +167,7 @@ describe("Manually constructed precedence graphs", () => {
168167
expect(graph.size()[1]).toEqual(4); // E
169168
Log.global.debug(graph.toString());
170169
expect(graph.toString()).toBe(
171-
StringUtil.dontIndent`graph
170+
dontIndent`graph
172171
0["app.R[R3]"]
173172
1["app.R[R5]"]
174173
2["app.R[R4]"]

__tests__/graph.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {PrioritySet, PrioritySetElement} from "../src/core/queue";
22
import type {Sortable} from "../src/core/types";
33
import {PrecedenceGraph, SortablePrecedenceGraph} from "../src/core/graph";
4-
import {StringUtil} from "../src/core/strings";
4+
55
/**
66
* The tests below test the functionality of the hasCycle() utility function on various
77
* dependency graphs, in combination with various graph manipulation utilities

__tests__/simple.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Reactor, App, InPort, OutPort, StringUtil} from "../src/core/internal";
1+
import {Reactor, App, InPort, OutPort, dontIndent} from "../src/core/internal";
22

33
class MyActor extends Reactor {
44
a = new InPort<{t: number}>(this);
@@ -18,7 +18,7 @@ class MyActor2 extends Reactor {
1818

1919
describe("Test names for contained reactors", () => {
2020
class myApp extends App {
21-
port: InPort<any> = new InPort<any>(this);
21+
port: InPort<unknown> = new InPort(this);
2222

2323
x = new MyActor(this);
2424

@@ -68,7 +68,7 @@ describe("Test names for contained reactors", () => {
6868

6969
it("graph before connect", () => {
7070
expect(this._getPrecedenceGraph().toString()).toBe(
71-
StringUtil.dontIndent`graph
71+
dontIndent`graph
7272
0["myApp.x[M0]"]
7373
1["myApp[M0]"]
7474
2["myApp.y[M0]"]
@@ -91,7 +91,7 @@ describe("Test names for contained reactors", () => {
9191

9292
it("graph after connect and before disconnect", () => {
9393
expect(this._getPrecedenceGraph().toString()).toBe(
94-
StringUtil.dontIndent`graph
94+
dontIndent`graph
9595
0["myApp.x.a"]
9696
1["myApp.y.b"]
9797
2["myApp.x[M0]"]
@@ -106,7 +106,7 @@ describe("Test names for contained reactors", () => {
106106
it("graph after disconnect", () => {
107107
this._disconnect(this.y.b, this.x.a);
108108
expect(this._getPrecedenceGraph().toString()).toBe(
109-
StringUtil.dontIndent`graph
109+
dontIndent`graph
110110
0["myApp.x.a"]
111111
1["myApp.y.b"]
112112
2["myApp.x[M0]"]

lingua-franca-ref.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
master
1+
ts-never
2+

0 commit comments

Comments
 (0)