require 'minitest_helper'

class TestCaseninja < MiniTest::Test
  def test_that_it_has_a_version_number
    refute_nil ::Caseninja::VERSION
  end

  def test_exec
    assert_equal(
      {
        chain: "hello-world",
        snake: "hello_world",
        camel: "helloWorld",
        pascal: "HelloWorld",
        upchain: "HELLO-WORLD",
        upsnake: "HELLO_WORLD",
      },
      Caseninja.exec("hello world")
    )

    # assert_equal(
    #   {
    #     chain: "caseninja-converts-input-text-to-chain-case",
    #     snake: "caseninja_converts_input_text_to_chain_case",
    #     camel: "caseninjaConvertsInputTextToChainCase",
    #     pascal: "CaseninjaConvertsInputTextToChainCase",
    #     upchain: "CASENINJA-CONVERTS-INPUT-TEXT-TO-CHAIN-CASE",
    #     upsnake: "CASENINJA_CONVERTS_INPUT_TEXT_TO_CHAIN_CASE",
    #   },
    #   Caseninja.exec("Caseninja converts input text to chain case")
    # )
  end
end

require 'minitest_helper'

class TestCaseninja < MiniTest::Test
  def test_that_it_has_a_version_number
    refute_nil ::Caseninja::VERSION
  end

  def test_exec
    assert_equal(
      {
        chain: "hello-world",
        snake: "hello_world",
        camel: "helloWorld",
        pascal: "HelloWorld",
        upchain: "HELLO-WORLD",
        upsnake: "HELLO_WORLD",
      },
      Caseninja.exec("hello world")
    )

    assert_equal(
      {
        chain: "caseninja-converts-input-text-to-chain-case",
        snake: "caseninja_converts_input_text_to_chain_case",
        camel: "caseninjaConvertsInputTextToChainCase",
        pascal: "CaseninjaConvertsInputTextToChainCase",
        upchain: "CASENINJA-CONVERTS-INPUT-TEXT-TO-CHAIN-CASE",
        upsnake: "CASENINJA_CONVERTS_INPUT_TEXT_TO_CHAIN_CASE",
      },
      # Caseninja.exec("Caseninja converts input text to chain case")
      Caseninja.exec("caseninja converts input text to chain case")
    )
  end
end

Add test case (But it is not yet possible to normalize)
Add test case (But it is not yet possible to normalize)
