Browse Source

Test1

master
Moritz Neumeier 3 years ago
parent
commit
3282adb202

+ 10
- 0
.idea/libraries/jars.xml View File

<component name="libraryTable">
<library name="jars">
<CLASSES>
<root url="jar://$PROJECT_DIR$/jars/hamcrest-core-1.3.jar!/" />
<root url="jar://$PROJECT_DIR$/jars/junit-4.12.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

+ 6
- 0
.idea/misc.xml View File

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_16" project-jdk-name="openjdk-17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

+ 8
- 0
.idea/modules.xml View File

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/TriangleCheckerAssignment.iml" filepath="$PROJECT_DIR$/TriangleCheckerAssignment.iml" />
</modules>
</component>
</project>

+ 10
- 0
.idea/runConfigurations.xml View File

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
</set>
</option>
</component>
</project>

+ 6
- 0
.idea/vcs.xml View File

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

BIN
out/production/TriangleCheckerAssignment/TriangleChecker$1.class View File


BIN
out/production/TriangleCheckerAssignment/TriangleChecker$TriangleType.class View File


BIN
out/production/TriangleCheckerAssignment/TriangleChecker.class View File


+ 1
- 0
src/TriangleChecker.java View File

public static TriangleType checkTriangle(float a, float b, float c) { public static TriangleType checkTriangle(float a, float b, float c) {


if(a >= (b+c) || c >= (b+a) || b >= (a+c) ){ if(a >= (b+c) || c >= (b+a) || b >= (a+c) ){

return TriangleType.NONE; return TriangleType.NONE;
} }
return TriangleType.NORMAL; return TriangleType.NORMAL;

+ 1
- 0
test/TriangleCheckerTest.java View File

// Assert // Assert
assertEquals(TriangleChecker.TriangleType.NORMAL, type); assertEquals(TriangleChecker.TriangleType.NORMAL, type);


} }


} }

Loading…
Cancel
Save