diff --git a/kotlin/bin/test/com/kheiron/ktbind/NativeBindingsTest.kt b/kotlin/bin/test/com/kheiron/ktbind/NativeBindingsTest.kt index 9b19982..22b5514 100644 --- a/kotlin/bin/test/com/kheiron/ktbind/NativeBindingsTest.kt +++ b/kotlin/bin/test/com/kheiron/ktbind/NativeBindingsTest.kt @@ -17,6 +17,7 @@ abstract class NativeObject : AutoCloseable { */ @Suppress("unused") private val nativePointer: Long = 0 + private val testvar123455VariableMVariableMaxLengthVariableMaxLengthaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLength: Long = 0 } private class TempTest(message: String) : Throwable(message: String) { diff --git a/kotlin/src/test/kotlin/com/kheiron/ktbind/NativeBindingsTest.kt b/kotlin/src/test/kotlin/com/kheiron/ktbind/NativeBindingsTest.kt index 9b19982..22b5514 100644 --- a/kotlin/src/test/kotlin/com/kheiron/ktbind/NativeBindingsTest.kt +++ b/kotlin/src/test/kotlin/com/kheiron/ktbind/NativeBindingsTest.kt @@ -17,6 +17,7 @@ abstract class NativeObject : AutoCloseable { */ @Suppress("unused") private val nativePointer: Long = 0 + private val testvar123455VariableMVariableMaxLengthVariableMaxLengthaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLength: Long = 0 } private class TempTest(message: String) : Throwable(message: String) { diff --git a/python/person.py b/python/person.py index 8af7e3f..d9bfdf8 100644 --- a/python/person.py +++ b/python/person.py @@ -10,9 +10,24 @@ def get_name(self, user_id): return 'There is no such user' else: return self.name[user_id] + + def TowerOfHanoi(n , source, destination, auxiliary): + if n==1: + print ("Move disk 1 from source",source,"to destination",destination) + return + TowerOfHanoi(n-1, source, auxiliary, destination) + print ("Move disk",n,"from source",source,"to destination",destination) + TowerOfHanoi(n-1, auxiliary, destination, source) + def fibonacci_of(n): + if n in {0, 1}: # Base case + return n + return fibonacci_of(n - 1) + fibonacci_of(n - 2) # Recursive case + if __name__ == '__main__': person = Person() print('User Abbas has been added with id ', person.set_name('Abbas')) - print('User associated with id 0 is ', person.get_name(0)) \ No newline at end of file + print('User associated with id 0 is ', person.get_name(0)) + eval("person.get_name(0)") + eval("fibonacci_of(3)") \ No newline at end of file diff --git a/python/requirements.txt b/python/requirements.txt index 146444f..746921f 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -1,3 +1,5 @@ flask==1.0.2 django==1.11.29 -requests==2.19.1 \ No newline at end of file +requests==2.19.1 +PyYAML==5.3 +Pillow==8.2.0 diff --git a/python/test_person.py b/python/test_person.py index ba8cd84..c47fc67 100644 --- a/python/test_person.py +++ b/python/test_person.py @@ -17,10 +17,6 @@ def test_person(self): person.set_name('yay') self.assertEqual(person.get_name(0), 'yay') - def test_person2(self): - person = Person() - person.set_name('yay2') - self.assertEqual(person.get_name(0), 'yay2') if __name__ == '__main__': unittest.main()