import unittest
import io
import re
from unittest import mock
import math
import student_X as main #Replace student_X with your filename 
    
    
    
 

class FindTests(unittest.TestCase):

    def test_default_case(self):
        function = main.find
        inputs = ('venusaur', 'x')

        
        correct = -1
        if isinstance(inputs, tuple):
            result = function(*inputs)
        else:
            result = function(inputs)
        test = result == correct
        message = "Doesn't work when the character isn't in the string."
        self.assertTrue(test, message)

        
        
        inputs = ('venusaur', 's')
        
        correct = 4
        if isinstance(inputs, tuple):
            result = function(*inputs)
        else:
            result = function(inputs)
        test = result == correct
        message = "Doesn't work when the character is in the string once."
        self.assertTrue(test, message)


        
        inputs = ('venusaur', 'u')
        correct = 3
        if isinstance(inputs, tuple):
            result = function(*inputs)
        else:
            result = function(inputs)
        test = result == correct
        message = "Doesn't work when there are multiple instances of the character in the string."
        self.assertTrue(test, message)
        
        
if __name__ == "__main__":
    tests = FindTests()
    tests.test_default_case()