Skip to content
Snippets Groups Projects
Commit 207c0899 authored by Matt Bovel's avatar Matt Bovel
Browse files

Fix typos

parent e049e321
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ import scala.collection.parallel.CollectionConverters.*
// Questions 1-3
// See tests in midterm.Part1Test.
// Run with `sbt testOnly midterm.Part1Test`.
// Run with `sbt "testOnly midterm.Part1Test"`.
def parallel3[A, B, C](op1: => A, op2: => B, op3: => C): (A, B, C) =
val res1 = task { op1 }
......
......@@ -3,7 +3,7 @@ package midterm
// Questions 4-7
// See tests in midterm.Part2Test.
// Run with `sbt testOnly midterm.Part2Test`.
// Run with `sbt "testOnly midterm.Part2Test"`.
/*
Answers to the exam questions:
......
......@@ -2,7 +2,7 @@ package midterm
// Question 8
// Run with `sbt runMain midterm.part3`
// Run with `sbt "runMain midterm.part3"`
@main def part3() =
def thread(b: => Unit) =
......
......@@ -6,7 +6,7 @@ import instrumentation.*
// Questions 9-15
// See tests in midterm.Part4Test.
// Run with `sbt testOnly midterm.Part4Test`.
// Run with `sbt "testOnly midterm.Part4Test"`.
class Node(
// Globally unique identifier. Different for each instance.
......
......@@ -5,7 +5,7 @@ import midterm.instrumentation.Monitor
// Question 21
// See tests in midterm.Part6Test.
// Run with `sbt testOnly midterm.Part6Test`.
// Run with `sbt "testOnly midterm.Part6Test"`.
class TicketsManager(totalTickets: Int) extends Monitor:
var remainingTickets = totalTickets
......
......@@ -5,7 +5,7 @@ import midterm.instrumentation.Monitor
// Questions 22-24
// See tests in midterm.Part7Test.
// Run with `sbt testOnly midterm.Part7Test`.
// Run with `sbt "testOnly midterm.Part7Test"`.
class NIC(private val _index: Int, private var _assigned: Boolean)
extends Monitor:
......
......@@ -7,7 +7,7 @@ import scala.annotation.tailrec
// Question 25
// See tests in midterm.Part8Test.
// Run with `sbt testOnly midterm.Part8Test`.
// Run with `sbt "testOnly midterm.Part8Test"`.
// Represent a social network where user can follow each other. Each user is
// represented by an id that is an `Int`.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment