<commit_before>package ammonite.repl

import utest._
import ammonite.ops._

/**
 * Run a small number of scripts using the Ammonite standalone executable,
 * to make sure that this works. Otherwise it tends to break since the
 * standalone executable has a pretty different classloading environment
 * from the "run in SBT on raw class files" that the rest of the tests use.
 *
 * Requires `sbt/assembly` to be run before-hand to work.
 */
object StandaloneTests extends TestSuite{
  val tests = TestSuite {
    val scalaVersion = scala.util.Properties.versionNumberString
    val ammVersion = ammonite.Constants.version
    val executableName = s"ammonite-repl-$ammVersion-$scalaVersion"
    val Seq(executable) = ls.rec! cwd |? (_.last == executableName)
    val resources = cwd/'repl/'src/'test/'resource/'standalone
    def exec(name: String) = (%%bash(executable, resources/name)).mkString("\n")
    'hello{
      val evaled = exec("Hello.scala")
      assert(evaled == "Hello World")
    }
    'complex{
      val evaled = exec("Complex.scala")
      assert(evaled.contains("Spire Interval [0, 10]"))
    }
  }<commit_msg>try to fix build again<commit_after>package ammonite.repl

import utest._
import ammonite.ops._
import ammonite.ops.ImplicitWd._
/**
 * Run a small number of scripts using the Ammonite standalone executable,
 * to make sure that this works. Otherwise it tends to break since the
 * standalone executable has a pretty different classloading environment
 * from the "run in SBT on raw class files" that the rest of the tests use.
 *
 * Requires `sbt/assembly` to be run before-hand to work.
 */
object StandaloneTests extends TestSuite{
  val tests = TestSuite {
    val scalaVersion = scala.util.Properties.versionNumberString
    val ammVersion = ammonite.Constants.version
    val executableName = s"ammonite-repl-$ammVersion-$scalaVersion"
    val Seq(executable) = ls.rec! cwd |? (_.last == executableName)
    val resources = cwd/'repl/'src/'test/'resource/'standalone
    def exec(name: String) = (%%bash(executable, resources/name)).mkString("\n")
    'hello{
      val evaled = exec("Hello.scala")
      assert(evaled == "Hello World")
    }
    'complex{
      val evaled = exec("Complex.scala")
      assert(evaled.contains("Spire Interval [0, 10]"))
    }
  }
{'fraction_non_alphanumeric': 0.10753156290814106, 'fraction_numerical': 0.00261210274270788, 'mean_word_length': 3.7186858316221767, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '252531', 'n_tokens_mistral': 707, 'n_tokens_neox': 672, 'n_words': 220}