Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ class VariantManagerTest {
@Test
fun serpControlVariantIsInactiveAndHasNoFeatures() {
val variant = variants.first { it.key == "sc" }
assertEqualsDouble(0.0, variant.weight)
assertEqualsDouble(1.0, variant.weight)
assertEquals(0, variant.features.size)
}

@Test
fun serpExperimentalVariantIsInactiveAndHasNoFeatures() {
val variant = variants.first { it.key == "se" }
assertEqualsDouble(0.0, variant.weight)
assertEqualsDouble(1.0, variant.weight)
assertEquals(0, variant.features.size)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class LaunchBridgeActivity : DuckDuckGoActivity() {
} else {
startActivity(OnboardingActivity.intent(this))
}
finish()
}

private fun showHome() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ interface VariantManager {
val ACTIVE_VARIANTS = listOf(
// SERP variants. "sc" may also be used as a shared control for mobile experiments in
// the future if we can filter by app version
Variant(key = "sc", weight = 0.0, features = emptyList(), filterBy = { noFilter() }),
Variant(key = "se", weight = 0.0, features = emptyList(), filterBy = { noFilter() }),
Variant(key = "sc", weight = 1.0, features = emptyList(), filterBy = { noFilter() }),
Variant(key = "se", weight = 1.0, features = emptyList(), filterBy = { noFilter() }),

// Concept test experiment
Variant(key = "mc", weight = 0.0, features = emptyList(), filterBy = { isEnglishLocale() }),
Expand Down