Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SPB_Exchange_Repo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Amelin Konstantin
SPB_Exchange_Repo
Commits
5067e816
Commit
5067e816
authored
Oct 20, 2018
by
Amelin Konstantin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add README.md
parent
f1991e76
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
2 deletions
+34
-2
README.md
+32
-0
src/test/scala/templates/TemplateSpec.scala
+2
-2
No files found.
README.md
0 → 100644
View file @
5067e816
# Конвертер из формата репозитария НРД в формат репозитария РТС
# Установка
1) Установить
[
IDE
](
https://www.jetbrains.com/idea/
)
.
2) Установить Scala/Sbt
[
плагин
](
https://www.jetbrains.com/help/idea/discover-intellij-idea-for-scala.html#scala_plugin
)
.
# Импорт проекта
Импортировать проект.
<https://www.jetbrains.com/help/idea/sbt-support.html#import_sbt>
# Запуск проекта
1) Создать в корне проекта папку output.
2) Запуск из терминала
```
sbt run
или
sbt ~run
```
3) Запуск из IDE.
<https://www.jetbrains.com/help/idea/discover-intellij-idea-for-scala.html#RunningDebugging>
4) Запуск тестов из терминала
```
sbt test
или
sbt ~test
```
src/test/scala/templates/TemplateSpec.scala
View file @
5067e816
...
...
@@ -93,7 +93,7 @@ class TemplateSpec extends WordSpec {
}
it
should
{
"
find
template instance using source"
in
{
"
choose right Template class and create
template instance using source"
in
{
implicit
def
templateFactory
(
source
:
Node
)
:
Template
=
{
(
source
\\
"trade"
).
head
.
child
.
filter
{
case
v
:
Elem
=>
true
...
...
@@ -112,7 +112,7 @@ class TemplateSpec extends WordSpec {
}
it
should
{
"throw Exception if
t
emplate type is undefined"
in
{
"throw Exception if
T
emplate type is undefined"
in
{
implicit
def
templateFactory
(
source
:
Node
)
:
Template
=
{
(
source
\\
"trade"
).
head
.
child
.
filter
{
case
v
:
Elem
=>
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment