Skip to content

Commit f7d1734

Browse files
author
jack
committed
HigherOrderFunAndLambdaTest
1 parent 70adab7 commit f7d1734

File tree

9 files changed

+3797
-0
lines changed

9 files changed

+3797
-0
lines changed

build.gradle

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
plugins {
2+
id 'java'
3+
id 'org.jetbrains.kotlin.jvm' version '1.2.51'
4+
}
5+
6+
group 'com.easykotlin.tutorials'
7+
version '1.0-SNAPSHOT'
8+
9+
sourceCompatibility = 1.8
10+
11+
repositories {
12+
mavenCentral()
13+
}
14+
15+
dependencies {
16+
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
17+
testCompile group: 'junit', name: 'junit', version: '4.12'
18+
}
19+
20+
compileKotlin {
21+
kotlinOptions.jvmTarget = "1.8"
22+
}
23+
compileTestKotlin {
24+
kotlinOptions.jvmTarget = "1.8"
25+
}

higher-order-fun-and-lambda.iml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module external.linked.project.id="higher-order-fun-and-lambda" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="com.easykotlin.tutorials" external.system.module.version="1.0-SNAPSHOT" type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
7+
<excludeFolder url="file://$MODULE_DIR$/build" />
8+
<excludeFolder url="file://$MODULE_DIR$/out" />
9+
</content>
10+
<orderEntry type="inheritedJdk" />
11+
<orderEntry type="sourceFolder" forTests="false" />
12+
</component>
13+
</module>

higher-order-fun-and-lambda.ipr

Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project version="4">
3+
<component name="ClojureProjectResolveSettings">
4+
<currentScheme>IDE</currentScheme>
5+
</component>
6+
<component name="CompilerConfiguration">
7+
<bytecodeTargetLevel>
8+
<module name="higher-order-fun-and-lambda_main" target="1.8" />
9+
<module name="higher-order-fun-and-lambda_test" target="1.8" />
10+
</bytecodeTargetLevel>
11+
</component>
12+
<component name="Encoding" defaultCharsetForPropertiesFiles="UTF-8">
13+
<file url="PROJECT" charset="UTF-8" />
14+
</component>
15+
<component name="ExternalStorageConfigurationManager" enabled="true" />
16+
<component name="GradleSettings">
17+
<option name="linkedExternalProjectsSettings">
18+
<GradleProjectSettings>
19+
<option name="distributionType" value="LOCAL" />
20+
<option name="externalProjectPath" value="$PROJECT_DIR$" />
21+
<option name="gradleHome" value="$USER_HOME$/soft/gradle-4.10.2" />
22+
<option name="modules">
23+
<set>
24+
<option value="$PROJECT_DIR$" />
25+
</set>
26+
</option>
27+
<option name="useAutoImport" value="true" />
28+
</GradleProjectSettings>
29+
</option>
30+
</component>
31+
<component name="InspectionProjectProfileManager">
32+
<profile version="1.0">
33+
<option name="myName" value="Project Default" />
34+
</profile>
35+
<version value="1.0" />
36+
<list size="7">
37+
<item index="0" class="java.lang.String" itemvalue="INFORMATION" />
38+
<item index="1" class="java.lang.String" itemvalue="TYPO" />
39+
<item index="2" class="java.lang.String" itemvalue="SERVER PROBLEM" />
40+
<item index="3" class="java.lang.String" itemvalue="INFO" />
41+
<item index="4" class="java.lang.String" itemvalue="WEAK WARNING" />
42+
<item index="5" class="java.lang.String" itemvalue="WARNING" />
43+
<item index="6" class="java.lang.String" itemvalue="ERROR" />
44+
</list>
45+
</component>
46+
<component name="JavaScriptSettings">
47+
<option name="languageLevel" value="ES6" />
48+
</component>
49+
<component name="MarkdownNavigator.ProfileManager" default="" pdf-export="" />
50+
<component name="MarkdownProjectSettings">
51+
<PreviewSettings splitEditorLayout="SPLIT" splitEditorPreview="PREVIEW" useGrayscaleRendering="false" zoomFactor="1.0" maxImageWidth="0" showGitHubPageIfSynced="false" allowBrowsingInPreview="false" synchronizePreviewPosition="true" highlightPreviewType="NONE" highlightFadeOut="5" highlightOnTyping="true" synchronizeSourcePosition="true" verticallyAlignSourceAndPreviewSyncPosition="true" showSearchHighlightsInPreview="false" showSelectionInPreview="true" openRemoteLinks="true">
52+
<PanelProvider>
53+
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.panel" providerName="Default - Swing" />
54+
</PanelProvider>
55+
</PreviewSettings>
56+
<ParserSettings gitHubSyntaxChange="false">
57+
<PegdownExtensions>
58+
<option name="ABBREVIATIONS" value="false" />
59+
<option name="ANCHORLINKS" value="true" />
60+
<option name="ASIDE" value="false" />
61+
<option name="ATXHEADERSPACE" value="true" />
62+
<option name="AUTOLINKS" value="true" />
63+
<option name="DEFINITIONS" value="false" />
64+
<option name="DEFINITION_BREAK_DOUBLE_BLANK_LINE" value="false" />
65+
<option name="FENCED_CODE_BLOCKS" value="true" />
66+
<option name="FOOTNOTES" value="false" />
67+
<option name="HARDWRAPS" value="false" />
68+
<option name="HTML_DEEP_PARSER" value="false" />
69+
<option name="INSERTED" value="false" />
70+
<option name="QUOTES" value="false" />
71+
<option name="RELAXEDHRULES" value="true" />
72+
<option name="SMARTS" value="false" />
73+
<option name="STRIKETHROUGH" value="true" />
74+
<option name="SUBSCRIPT" value="false" />
75+
<option name="SUPERSCRIPT" value="false" />
76+
<option name="SUPPRESS_HTML_BLOCKS" value="false" />
77+
<option name="SUPPRESS_INLINE_HTML" value="false" />
78+
<option name="TABLES" value="true" />
79+
<option name="TASKLISTITEMS" value="true" />
80+
<option name="TOC" value="false" />
81+
<option name="WIKILINKS" value="true" />
82+
</PegdownExtensions>
83+
<ParserOptions>
84+
<option name="COMMONMARK_LISTS" value="false" />
85+
<option name="DUMMY" value="false" />
86+
<option name="EMOJI_SHORTCUTS" value="true" />
87+
<option name="FLEXMARK_FRONT_MATTER" value="false" />
88+
<option name="GFM_LOOSE_BLANK_LINE_AFTER_ITEM_PARA" value="true" />
89+
<option name="GFM_TABLE_RENDERING" value="true" />
90+
<option name="GITBOOK_URL_ENCODING" value="false" />
91+
<option name="GITHUB_EMOJI_URL" value="false" />
92+
<option name="GITHUB_LISTS" value="true" />
93+
<option name="GITHUB_WIKI_LINKS" value="true" />
94+
<option name="JEKYLL_FRONT_MATTER" value="false" />
95+
<option name="SIM_TOC_BLANK_LINE_SPACER" value="true" />
96+
</ParserOptions>
97+
</ParserSettings>
98+
<HtmlSettings headerTopEnabled="false" headerBottomEnabled="false" bodyTopEnabled="false" bodyBottomEnabled="false" embedUrlContent="false" addPageHeader="true" embedImages="false" embedHttpImages="false">
99+
<GeneratorProvider>
100+
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.generator" providerName="Default Swing HTML Generator" />
101+
</GeneratorProvider>
102+
<headerTop />
103+
<headerBottom />
104+
<bodyTop />
105+
<bodyBottom />
106+
</HtmlSettings>
107+
<CssSettings previewScheme="UI_SCHEME" cssUri="" isCssUriEnabled="false" isCssTextEnabled="false" isDynamicPageWidth="true">
108+
<StylesheetProvider>
109+
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.css" providerName="Default Swing Stylesheet" />
110+
</StylesheetProvider>
111+
<ScriptProviders />
112+
<cssText />
113+
</CssSettings>
114+
<HtmlExportSettings updateOnSave="false" parentDir="$ProjectFileDir$" targetDir="$ProjectFileDir$" cssDir="" scriptDir="" plainHtml="false" imageDir="" copyLinkedImages="false" imageUniquifyType="0" targetExt="" useTargetExt="false" noCssNoScripts="false" linkToExportedHtml="true" exportOnSettingsChange="true" regenerateOnProjectOpen="false" linkFormatType="HTTP_ABSOLUTE" />
115+
<LinkMapSettings>
116+
<textMaps />
117+
</LinkMapSettings>
118+
</component>
119+
<component name="ProjectCodeStyleConfiguration">
120+
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
121+
<code_scheme name="Project" version="173">
122+
<option name="OTHER_INDENT_OPTIONS">
123+
<value>
124+
<option name="SMART_TABS" value="true" />
125+
</value>
126+
</option>
127+
<MarkdownNavigatorCodeStyleSettings>
128+
<option name="RIGHT_MARGIN" value="72" />
129+
</MarkdownNavigatorCodeStyleSettings>
130+
</code_scheme>
131+
</component>
132+
<component name="ProjectModuleManager">
133+
<modules>
134+
<module fileurl="file://$PROJECT_DIR$/higher-order-fun-and-lambda.iml" filepath="$PROJECT_DIR$/higher-order-fun-and-lambda.iml" />
135+
<module fileurl="file://$PROJECT_DIR$/higher-order-fun-and-lambda_main.iml" filepath="$PROJECT_DIR$/higher-order-fun-and-lambda_main.iml" group="higher-order-fun-and-lambda" />
136+
<module fileurl="file://$PROJECT_DIR$/higher-order-fun-and-lambda_test.iml" filepath="$PROJECT_DIR$/higher-order-fun-and-lambda_test.iml" group="higher-order-fun-and-lambda" />
137+
</modules>
138+
</component>
139+
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
140+
<output url="file://$PROJECT_DIR$/out" />
141+
</component>
142+
<component name="VcsDirectoryMappings">
143+
<mapping directory="$PROJECT_DIR$" vcs="Git" />
144+
</component>
145+
<component name="libraryTable">
146+
<library name="Gradle: junit:junit:4.12">
147+
<CLASSES>
148+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/2973d150c0dc1fefe998f834810d68f278ea58ec/junit-4.12.jar!/" />
149+
</CLASSES>
150+
<JAVADOC />
151+
<SOURCES>
152+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/a6c32b40bf3d76eca54e3c601e5d1470c86fcdfa/junit-4.12-sources.jar!/" />
153+
</SOURCES>
154+
</library>
155+
<library name="Gradle: org.hamcrest:hamcrest-core:1.3">
156+
<CLASSES>
157+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/42a25dc3219429f0e5d060061f71acb49bf010a0/hamcrest-core-1.3.jar!/" />
158+
</CLASSES>
159+
<JAVADOC />
160+
<SOURCES>
161+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/1dc37250fbc78e23a65a67fbbaf71d2e9cbc3c0b/hamcrest-core-1.3-sources.jar!/" />
162+
</SOURCES>
163+
</library>
164+
<library name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-common:1.2.51" type="kotlin.common">
165+
<CLASSES>
166+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.2.51/e4a9d4b13ab19ed1e6531fce6df98e8cfa7f7301/kotlin-stdlib-common-1.2.51.jar!/" />
167+
</CLASSES>
168+
<JAVADOC />
169+
<SOURCES>
170+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.2.51/e8c91083a5863d94fdc2836459e7e7a555774be9/kotlin-stdlib-common-1.2.51-sources.jar!/" />
171+
</SOURCES>
172+
</library>
173+
<library name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.51">
174+
<CLASSES>
175+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.2.51/a37c0066df119c02f034bf17159089b588ccc41a/kotlin-stdlib-jdk7-1.2.51.jar!/" />
176+
</CLASSES>
177+
<JAVADOC />
178+
<SOURCES>
179+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.2.51/42b719793a22ad3e283fc9aa33a2ae2c2b68a89c/kotlin-stdlib-jdk7-1.2.51-sources.jar!/" />
180+
</SOURCES>
181+
</library>
182+
<library name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.51">
183+
<CLASSES>
184+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.2.51/68faa6fb7e32a7665a6849f242bc621c3ed48101/kotlin-stdlib-jdk8-1.2.51.jar!/" />
185+
</CLASSES>
186+
<JAVADOC />
187+
<SOURCES>
188+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.2.51/e10ffb65e52d4041f98d95477f7bfc61696f5ddb/kotlin-stdlib-jdk8-1.2.51-sources.jar!/" />
189+
</SOURCES>
190+
</library>
191+
<library name="Gradle: org.jetbrains.kotlin:kotlin-stdlib:1.2.51">
192+
<CLASSES>
193+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.2.51/fa8127e505bff50fec291d0dd619d1bda5c619e0/kotlin-stdlib-1.2.51.jar!/" />
194+
</CLASSES>
195+
<JAVADOC />
196+
<SOURCES>
197+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.2.51/649a609725b857dd285cf69d49d4f1f77335076e/kotlin-stdlib-1.2.51-sources.jar!/" />
198+
</SOURCES>
199+
</library>
200+
<library name="Gradle: org.jetbrains:annotations:13.0">
201+
<CLASSES>
202+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/13.0/919f0dfe192fb4e063e7dacadee7f8bb9a2672a9/annotations-13.0.jar!/" />
203+
</CLASSES>
204+
<JAVADOC />
205+
<SOURCES>
206+
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.jetbrains/annotations/13.0/5991ca87ef1fb5544943d9abc5a9a37583fabe03/annotations-13.0-sources.jar!/" />
207+
</SOURCES>
208+
</library>
209+
</component>
210+
</project>

higher-order-fun-and-lambda_main.iml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module external.linked.project.id="higher-order-fun-and-lambda:main" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="com.easykotlin.tutorials" external.system.module.type="sourceSet" external.system.module.version="1.0-SNAPSHOT" type="JAVA_MODULE" version="4">
3+
<component name="FacetManager">
4+
<facet type="kotlin-language" name="Kotlin">
5+
<configuration version="3" platform="JVM 1.8" useProjectSettings="false">
6+
<compilerSettings />
7+
<compilerArguments>
8+
<option name="destination" value="$MODULE_DIR$/build/classes/kotlin/main" />
9+
<option name="noStdlib" value="true" />
10+
<option name="noReflect" value="true" />
11+
<option name="moduleName" value="higher-order-fun-and-lambda" />
12+
<option name="jvmTarget" value="1.8" />
13+
<option name="addCompilerBuiltIns" value="true" />
14+
<option name="loadBuiltInsFromDependencies" value="true" />
15+
<option name="languageVersion" value="1.2" />
16+
<option name="apiVersion" value="1.2" />
17+
<option name="pluginOptions">
18+
<array />
19+
</option>
20+
<option name="pluginClasspaths">
21+
<array />
22+
</option>
23+
</compilerArguments>
24+
</configuration>
25+
</facet>
26+
</component>
27+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
28+
<output url="file://$MODULE_DIR$/out/production/classes" />
29+
<exclude-output />
30+
<content url="file://$MODULE_DIR$/src/main">
31+
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
32+
<sourceFolder url="file://$MODULE_DIR$/src/main/kotlin" isTestSource="false" />
33+
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
34+
</content>
35+
<orderEntry type="inheritedJdk" />
36+
<orderEntry type="sourceFolder" forTests="false" />
37+
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.51" level="project" />
38+
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.51" level="project" />
39+
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib:1.2.51" level="project" />
40+
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-common:1.2.51" level="project" />
41+
<orderEntry type="library" name="Gradle: org.jetbrains:annotations:13.0" level="project" />
42+
</component>
43+
</module>

higher-order-fun-and-lambda_test.iml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module external.linked.project.id="higher-order-fun-and-lambda:test" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="com.easykotlin.tutorials" external.system.module.type="sourceSet" external.system.module.version="1.0-SNAPSHOT" type="JAVA_MODULE" version="4">
3+
<component name="FacetManager">
4+
<facet type="kotlin-language" name="Kotlin">
5+
<configuration version="3" platform="JVM 1.8" useProjectSettings="false">
6+
<compilerSettings />
7+
<compilerArguments>
8+
<option name="destination" value="$MODULE_DIR$/build/classes/kotlin/test" />
9+
<option name="noStdlib" value="true" />
10+
<option name="noReflect" value="true" />
11+
<option name="moduleName" value="higher-order-fun-and-lambda" />
12+
<option name="jvmTarget" value="1.8" />
13+
<option name="addCompilerBuiltIns" value="true" />
14+
<option name="loadBuiltInsFromDependencies" value="true" />
15+
<option name="languageVersion" value="1.2" />
16+
<option name="apiVersion" value="1.2" />
17+
<option name="pluginOptions">
18+
<array />
19+
</option>
20+
<option name="pluginClasspaths">
21+
<array />
22+
</option>
23+
</compilerArguments>
24+
</configuration>
25+
</facet>
26+
</component>
27+
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
28+
<output-test url="file://$MODULE_DIR$/out/test/classes" />
29+
<exclude-output />
30+
<content url="file://$MODULE_DIR$/src/test">
31+
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
32+
<sourceFolder url="file://$MODULE_DIR$/src/test/kotlin" isTestSource="true" />
33+
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
34+
</content>
35+
<orderEntry type="inheritedJdk" />
36+
<orderEntry type="sourceFolder" forTests="false" />
37+
<orderEntry type="module" module-name="higher-order-fun-and-lambda_main" />
38+
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.51" level="project" />
39+
<orderEntry type="library" name="Gradle: junit:junit:4.12" level="project" />
40+
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.51" level="project" />
41+
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib:1.2.51" level="project" />
42+
<orderEntry type="library" name="Gradle: org.hamcrest:hamcrest-core:1.3" level="project" />
43+
<orderEntry type="library" name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-common:1.2.51" level="project" />
44+
<orderEntry type="library" name="Gradle: org.jetbrains:annotations:13.0" level="project" />
45+
</component>
46+
<component name="TestModuleProperties" production-module="higher-order-fun-and-lambda_main" />
47+
</module>

settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rootProject.name = 'higher-order-fun-and-lambda'
2+

0 commit comments

Comments
 (0)