# Path: foil/strings.py
# def camel_to_snake(s: str) -> str:
#     """Convert string from camel case to snake case."""
# 
#     return CAMEL_CASE_RE.sub(r'_\1', s).strip().lower()
# 
# def snake_to_camel(s: str) -> str:
#     """Convert string from snake case to camel case."""
# 
#     fragments = s.split('_')
# 
#     return fragments[0] + ''.join(x.title() for x in fragments[1:])


import unittest
from foil.strings import camel_to_snake, snake_to_camel



class TestSnakeCamel(unittest.TestCase):

    def test_camel_to_snake_case(self):
        expected = 'hello_world'
        result = camel_to_snake('helloWorld')

        self.assertEqual(expected, result)

    def test_snake_to_camel_case(self):

# Path: foil/strings.py
# def camel_to_snake(s: str) -> str:
#     """Convert string from camel case to snake case."""
# 
#     return CAMEL_CASE_RE.sub(r'_\1', s).strip().lower()
# 
# def snake_to_camel(s: str) -> str:
#     """Convert string from snake case to camel case."""
# 
#     fragments = s.split('_')
# 
#     return fragments[0] + ''.join(x.title() for x in fragments[1:])


# Path: tests/test_strings.py
import unittest
from foil.strings import camel_to_snake, snake_to_camel




class TestSnakeCamel(unittest.TestCase):

    def test_camel_to_snake_case(self):
        expected = 'hello_world'
        result = camel_to_snake('helloWorld')

        self.assertEqual(expected, result)

    def test_snake_to_camel_case(self):

        expected = '123HelloWorld'