Sha256: 8a5d30e6e41839b9b4e18cc3757a153bd7e2b006e0767000dfc16a2f31ad274f

Contents?: true

Size: 704 Bytes

Versions: 1

Compression:

Stored size: 704 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/lisp-format.rb
#
# Extracted Wed Jan 25 10:52:51 EST 2006
# Unit Tools Reap Test Extractor
#

require 'facet/lisp-format.rb'


  require 'test/unit'

  class FormatTest < Test::Unit::TestCase

    def test_decimal
      assert( Lisp.format("~D", 1) == "1" )
    end

    def test_decimal_params
      assert( Lisp.format("~5,'-D~6D", 1, 2) == "----1     2" )
    end

    def test_decimal_modifiers
      assert( Lisp.format("~5,'-,'.:@D~@D", 1013, 2) == "+1.013+2" )
      assert( Lisp.format("~7,,,2:@D~@D", 1013, 2) == " +10,13+2" )
    end

    # Tests for ~v, ~V, ~#

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.0.3 packages/more/test/lib/facet/test_lisp-format.rb