Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaron committed Aug 17, 2024
1 parent 0d98962 commit 49a6f0a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions roboquant/src/main/kotlin/org/roboquant/feeds/Feed.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

@file:Suppress("RunBlocking")

package org.roboquant.feeds

import kotlinx.coroutines.*
Expand Down
4 changes: 2 additions & 2 deletions roboquant/src/test/kotlin/org/roboquant/TestData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

@file:Suppress("RunBlocking")

package org.roboquant

import kotlinx.coroutines.runBlocking
Expand Down Expand Up @@ -117,8 +119,6 @@ internal object TestData {
}




fun feedTest(feed: Feed, timeframe: Timeframe = Timeframe.INFINITE) = runBlocking {
var prev = Instant.MIN
for (event in play(feed, timeframe)) {
Expand Down
2 changes: 2 additions & 0 deletions roboquant/src/test/kotlin/org/roboquant/common/AssetTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package org.roboquant.common


import kotlin.test.Test
import kotlin.test.assertContains
import kotlin.test.assertEquals

internal class AssetTest {
Expand All @@ -30,6 +31,7 @@ internal class AssetTest {
assertEquals("ABC", a.symbol)
assertEquals(a, c)
assertEquals(a, a)
assertContains(Asset.registry, "Stock")
}


Expand Down

0 comments on commit 49a6f0a

Please sign in to comment.