Sha256: 8e0d7d18bbe90845d05aa4c7e8606688a7538a970cb193311d68f025bfca1d67
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: binary -*- $:.unshift(File.join(File.dirname(__FILE__), '..', '..')) require 'test/unit' require 'rex/parser/ini' class Rex::Parser::Ini::UnitTest < Test::Unit::TestCase Klass = Rex::Parser::Ini TestIni = <<END [group1] cat=dog bird=frog [group2] salad=cake END def test_parse ini = Klass.from_s(TestIni) assert_equal('dog', ini['group1']['cat']) assert_equal('frog', ini['group1']['bird']) assert_equal('cake', ini['group2']['salad']) assert_equal(TestIni + "\n", ini.to_s) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
librex-0.0.68 | lib/rex/parser/ini.rb.ut.rb |
librex-0.0.66 | lib/rex/parser/ini.rb.ut.rb |