<commit_before>require 'helper'

class TestPlatform < Test::Unit::TestCase

  def setup
  end

  def test_can_handle_percent_strings
    Boom::Platform.expects("system").with('printf "val%%ue" | pbcopy')
    Boom::Platform.copy(Boom::Item.new('name','val%ue'))
  end if !Boom::Platform.windows?

  def test_darwin
    assert_equal Boom::Platform.darwin?, RUBY_PLATFORM.include?('darwin')
  end

  def test_windows
    assert_equal Boom::Platform.windows?, true if RUBY_PLATFORM =~ /mswin|mingw/
  end
end
<commit_msg>Fix tests for platform-specific copy command<commit_after>require 'helper'

class TestPlatform < Test::Unit::TestCase

  def setup
  end

  def test_can_handle_percent_strings
    Boom::Platform.expects("system").with("printf \"val%%ue\" | #{Boom::Platform.copy_command}")
    Boom::Platform.copy(Boom::Item.new('name','val%ue'))
  end if !Boom::Platform.windows?

  def test_darwin
    assert_equal Boom::Platform.darwin?, RUBY_PLATFORM.include?('darwin')
  end

  def test_windows
    assert_equal Boom::Platform.windows?, true if RUBY_PLATFORM =~ /mswin|mingw/
  end
end

{'fraction_non_alphanumeric': 0.13473877176901924, 'fraction_numerical': 0.0, 'mean_word_length': 5.204545454545454, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1963923', 'n_tokens_mistral': 381, 'n_tokens_neox': 370, 'n_words': 71}