Skip to content

Commit

Permalink
quit unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
balath committed Jun 12, 2021
1 parent 5ceddb9 commit 54eeb4b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 56 deletions.
7 changes: 7 additions & 0 deletions src/main/scala/ActsParser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,11 @@ object ActsParser {
fileWriter.write(testSetString)
fileWriter.close()
}

def parseCsvTuples(tuples: Array[(String, Int)]): (Vector[Parameter], Int) = {
val (parametersTuples, tTuple) = tuples.span(!_._1.startsWith("t"))
val parameters = parametersTuples.map(tuple => Parameter(tuple._1, tuple._2)).toVector
val t = tTuple.head._2
(parameters, t)
}
}
9 changes: 1 addition & 8 deletions src/main/scala/Main.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ActsParser._
import Ipog.{Parameter, ipog}
import Ipog.ipog

import scala.io.Source
import scala.language.postfixOps
Expand Down Expand Up @@ -29,11 +29,4 @@ object Main extends App {
}
}
}

def parseCsvTuples(tuples: Array[(String, Int)]): (Vector[Parameter], Int) = {
val (parametersTuples, tTuple) = tuples.span(!_._1.startsWith("t"))
val parameters = parametersTuples.map(tuple => Parameter(tuple._1, tuple._2)).toVector
val t = tTuple.head._2
(parameters, t)
}
}
21 changes: 0 additions & 21 deletions src/main/scala/Utils.scala

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Ipog.Parameter
import Main._
import ActsParser._



class MainTest extends munit.FunSuite {
class CSVParserTest extends munit.FunSuite {


test("parseCsvTuples should format csv data for ipog implementation input"){
Expand Down
7 changes: 0 additions & 7 deletions src/test/scala/TestValues.scala

This file was deleted.

18 changes: 0 additions & 18 deletions src/test/scala/UtilsTest.scala

This file was deleted.

0 comments on commit 54eeb4b

Please sign in to comment.