<commit_before>require sprintf('%s/../%s', File.dirname(File.expand_path(__FILE__)), 'path_helper')

require 'rouster'
require 'test/unit'

@app = Rouster.new(:name => 'app')
@ppm = Rouster.new(:name => 'ppm', :sudo => false)

@app.up()

class TestRun < Test::Unit::TestCase

  ##def setup
  #  @app = Rouster.new({:name => 'app'})
  #  @ppm = Rouster.new({:name => 'ppm', :sudo => false})
  #
  #  @app.up()
  #  @ppm.up()
  #end

  def test_happy_path
    res = @app.run('ls -l')

    assert_equal(0, @app.exitcode, 'got expected exit code')
    assert_equal(res, @app.get_output(), 'return matches get_output()')
    assert_not_nil(@app.get_output(), 'output is populated')
    assert_match(/^total\s\d/, @app.get_output(), 'output matches expectations')
  end
<commit_msg>OCD commenting fix<commit_after>require sprintf('%s/../%s', File.dirname(File.expand_path(__FILE__)), 'path_helper')

require 'rouster'
require 'test/unit'

@app = Rouster.new(:name => 'app')
@ppm = Rouster.new(:name => 'ppm', :sudo => false)

@app.up()

class TestRun < Test::Unit::TestCase

  #def setup
  #  @app = Rouster.new({:name => 'app'})
  #  @ppm = Rouster.new({:name => 'ppm', :sudo => false})
  #
  #  @app.up()
  #  @ppm.up()
  #end

  def test_happy_path
    res = @app.run('ls -l')

    assert_equal(0, @app.exitcode, 'got expected exit code')
    assert_equal(res, @app.get_output(), 'return matches get_output()')
    assert_not_nil(@app.get_output(), 'output is populated')
    assert_match(/^total\s\d/, @app.get_output(), 'output matches expectations')
  end

{'fraction_non_alphanumeric': 0.2011568123393316, 'fraction_numerical': 0.0012853470437017994, 'mean_word_length': 4.172757475083056, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '3989326', 'n_tokens_mistral': 601, 'n_tokens_neox': 577, 'n_words': 120}