File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
test/scala/gopher/transputers Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ object ReflectUtil
11
11
{
12
12
val r1 = ownerType.members.filter(_.isTerm).map(_.asTerm).filter(x => x.isVal)
13
13
val signatures = r1.map(_.typeSignature)
14
- val ut = u.weakTypeOf [T ]
14
+ val ut = u.typeOf [T ]
15
15
val checkResults = signatures.map( _ <:< u.typeOf[T ])
16
16
val retval = ownerType.members.filter(_.isTerm).map(_.asTerm).filter{ x =>
17
17
if (x.isVal) {
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ trait BingoWithRecover extends SelectTransputer with TransputerLogging
40
40
loop {
41
41
case x : inX.read =>
42
42
val y = inY.read
43
- // log.info (s"Bingo checker, received ${x}, ${y} ")
43
+ // Console.println (s"Bingo checker, received ${x}, ${y} ")
44
44
out.write(x== y)
45
45
if (x== 2 ) {
46
46
throw new MyException ()
@@ -60,12 +60,12 @@ trait Acceptor1 extends SelectTransputer
60
60
61
61
val inA = InPort [Boolean ]()
62
62
63
- @ volatile var nBingos = 0
64
- @ volatile var nPairs = 0
63
+ var nBingos = 0
64
+ var nPairs = 0
65
65
66
66
loop {
67
67
case x : inA.read =>
68
- // Console.println(s"acceptor: ${nPairs} ${nBingos} ${x}")
68
+ // Console.println(s"acceptor: ${nPairs} ${nBingos} ${x}")
69
69
if (x) {
70
70
nBingos += 1
71
71
}
@@ -77,7 +77,7 @@ trait Acceptor1 extends SelectTransputer
77
77
class TransputerRestartSuite extends FunSuite
78
78
{
79
79
80
- test(" bingo restore with the same connectons" ) {
80
+ test(" bingo restore with the same connectons" , Now ) {
81
81
val inX = gopherApi.iterableInput(1 to 100 )
82
82
val inY = gopherApi.iterableInput(1 to 100 )
83
83
val bingo = gopherApi.makeTransputer[BingoWithRecover ]
You can’t perform that action at this time.
0 commit comments