<commit_before>#!/usr/bin/env ruby

require File.dirname(__FILE__) + '/../metar_test_helper'

class TestMetarRaw < Test::Unit::TestCase
  
  def setup
  end

  def test_fetch
    raw = Metar::Raw.fetch('LIRQ')
    assert_instance_of(String, raw)
  end

  def test_new
    assert_nothing_thrown do
      raw = Metar::Raw.new('LIRQ')
    end
  end

  def test_attributes
    raw = Metar::Raw.new('LIRQ')
    assert_equal('LIRQ', raw.cccc)
    assert_instance_of(Time, raw.time)
    assert_instance_of(String, raw.metar)
  end

end<commit_msg>More tests for Raw class.<commit_after>#!/usr/bin/env ruby

require File.dirname(__FILE__) + '/../metar_test_helper'

class TestMetarRaw < Test::Unit::TestCase
  
  def setup
  end

  def test_fetch
    raw = Metar::Raw.fetch('LIRQ')
    assert_instance_of(String, raw)
  end

  def test_new
    assert_nothing_thrown do
      raw = Metar::Raw.new('LIRQ')
    end
  end

  def test_cccc
    raw = Metar::Raw.new('LIRQ')
    assert_equal('LIRQ', raw.cccc)
  end

  def test_time
    raw = Metar::Raw.new('LIRQ')
    assert_instance_of(Time, raw.time)
    assert_equal(2010, raw.time.year)
  end

  def test_metar
    raw = Metar::Raw.new('LIRQ')
    assert_instance_of(String, raw.metar)
  end

end
{'fraction_non_alphanumeric': 0.12126111560226355, 'fraction_numerical': 0.0032336297493936943, 'mean_word_length': 3.359154929577465, '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': '7353113', 'n_tokens_mistral': 473, 'n_tokens_neox': 455, 'n_words': 91}