hexsha stringlengths 40 40 | size int64 38 969k | ext stringclasses 1
value | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 106 | max_stars_repo_name stringlengths 8 104 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses sequencelengths 1 4 | max_stars_count int64 1 38.8k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 106 | max_issues_repo_name stringlengths 8 104 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses sequencelengths 1 4 | max_issues_count int64 1 53.3k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 106 | max_forks_repo_name stringlengths 8 104 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses sequencelengths 1 4 | max_forks_count int64 1 6.24k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 38 969k | avg_line_length float64 6.33 6.5k | max_line_length int64 15 269k | alphanum_fraction float64 0.18 0.91 | test_functions sequencelengths 1 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f7005682f45127ca851469ce7a4ea680c9da5dc4 | 49 | jl | Julia | AE/test/runtests.jl | foldfelis/ML101.jl | b4b217ac4af88ba460ec26c5c8a1ce322edae64a | [
"MIT"
] | 6 | 2021-02-23T05:48:18.000Z | 2021-02-23T11:52:24.000Z | AE/test/runtests.jl | foldfelis/ML101.jl | b4b217ac4af88ba460ec26c5c8a1ce322edae64a | [
"MIT"
] | 5 | 2021-02-22T21:59:07.000Z | 2021-05-05T07:29:55.000Z | AE/test/runtests.jl | foldfelis/ML101.jl | b4b217ac4af88ba460ec26c5c8a1ce322edae64a | [
"MIT"
] | 1 | 2021-02-28T07:04:06.000Z | 2021-02-28T07:04:06.000Z | using AE
using Test
@testset "AE.jl" begin
end
| 7 | 22 | 0.714286 | [
"@testset \"AE.jl\" begin\n\nend"
] |
f702b1e015efb351ee28034b390c3e7d1c8857bc | 7,933 | jl | Julia | src/OrthoPolynomials.jl | OpenLibMathSeq/Sequences | e53c1f30b7bf81669805f21d408d407b727615b5 | [
"MIT"
] | 6 | 2019-06-25T08:54:44.000Z | 2021-11-07T04:52:29.000Z | src/OrthoPolynomials.jl | OpenLibMathSeq/Sequences | e53c1f30b7bf81669805f21d408d407b727615b5 | [
"MIT"
] | 3 | 2019-04-30T19:07:41.000Z | 2019-06-04T15:51:34.000Z | src/OrthoPolynomials.jl | PeterLuschny/IntegerSequences.jl | 1b9440bc8b86e3ae74fd26ee48fba412befbbdb5 | [
"MIT"
] | 4 | 2019-04-30T17:00:10.000Z | 2020-02-08T11:32:39.000Z | # This file is part of IntegerSequences.
# Copyright Peter Luschny. License is MIT.
(@__DIR__) ∉ LOAD_PATH && push!(LOAD_PATH, (@__DIR__))
module OrthoPolynomials
using Nemo, Triangles
export ModuleOrthoPolynomials
export OrthoPoly, InvOrthoPoly
export T053121, T216916, T217537, T064189, T202327, T111062, T099174
ex... | 23.680597 | 268 | 0.577209 | [
"@testset \"OrthoPoly\" begin\n\n @test isa(OrthoPoly(10, n -> 1, n -> n + 1)[end], fmpz)\n @test isa(InvOrthoPoly(10, n -> 1, n -> n + 1)[end], fmpz)\n @test RowSums(T217537(8)) == L217924(8)\n\n if data_installed()\n\n T = [\n T066325,\n T049310... |
f702dea5779e5262fac4b7f8e161329cc0c3f6d4 | 2,303 | jl | Julia | test/runtests.jl | felipenoris/SplitIterators.jl | 6ad384e290feed1339e94ff169b58922a3785359 | [
"MIT"
] | 2 | 2021-08-22T14:45:30.000Z | 2022-03-19T19:34:46.000Z | test/runtests.jl | felipenoris/SplitIterators.jl | 6ad384e290feed1339e94ff169b58922a3785359 | [
"MIT"
] | null | null | null | test/runtests.jl | felipenoris/SplitIterators.jl | 6ad384e290feed1339e94ff169b58922a3785359 | [
"MIT"
] | null | null | null |
using Test
import SplitIterators
@testset "split 11 by 3" begin
x = collect(1:11)
for (i, part) in enumerate(SplitIterators.split(x, 3))
if i == 1
@test part == collect(1:4)
elseif i == 2
@test part == collect(5:8)
elseif i == 3
@test part == colle... | 21.933333 | 138 | 0.539731 | [
"@testset \"split 11 by 3\" begin\n x = collect(1:11)\n\n for (i, part) in enumerate(SplitIterators.split(x, 3))\n if i == 1\n @test part == collect(1:4)\n elseif i == 2\n @test part == collect(5:8)\n elseif i == 3\n @test part == collect(9:11)\n el... |
f7065123fa9d24e80182de827c92598269a8c321 | 122 | jl | Julia | test/runtests.jl | Teslos/MyExample.jl | 014079e8dd99a63c1ff8340d1d9ed670ed8e91ad | [
"MIT"
] | null | null | null | test/runtests.jl | Teslos/MyExample.jl | 014079e8dd99a63c1ff8340d1d9ed670ed8e91ad | [
"MIT"
] | null | null | null | test/runtests.jl | Teslos/MyExample.jl | 014079e8dd99a63c1ff8340d1d9ed670ed8e91ad | [
"MIT"
] | null | null | null | using MyExample
using Test
#2x + 3y
@testset "MyExample.jl" begin
@test my_f(2,1) == 7
@test my_f(2,3) == 13
end
| 13.555556 | 29 | 0.622951 | [
"@testset \"MyExample.jl\" begin\n @test my_f(2,1) == 7\n @test my_f(2,3) == 13\nend"
] |
f7071fefba07848f0e49c2ef170c0eb46f03133d | 1,564 | jl | Julia | test/Ocean/SplitExplicit/test_coriolis.jl | ErikQQY/ClimateMachine.jl | ad128d457dd877bf21b5bcd845d6c3fa42de3f8a | [
"Apache-2.0"
] | 256 | 2020-05-06T08:03:16.000Z | 2022-03-22T14:01:20.000Z | test/Ocean/SplitExplicit/test_coriolis.jl | ErikQQY/ClimateMachine.jl | ad128d457dd877bf21b5bcd845d6c3fa42de3f8a | [
"Apache-2.0"
] | 1,174 | 2020-05-06T16:19:51.000Z | 2022-02-25T17:51:13.000Z | test/Ocean/SplitExplicit/test_coriolis.jl | ErikQQY/ClimateMachine.jl | ad128d457dd877bf21b5bcd845d6c3fa42de3f8a | [
"Apache-2.0"
] | 45 | 2020-05-08T02:28:36.000Z | 2022-03-14T22:44:56.000Z | #!/usr/bin/env julia --project
using Test
include("hydrostatic_spindown.jl")
ClimateMachine.init()
const FT = Float64
#################
# RUN THE TESTS #
#################
@testset "$(@__FILE__)" begin
include("../refvals/hydrostatic_spindown_refvals.jl")
# simulation time
timeend = FT(15 * 24 * 3600) ... | 20.578947 | 77 | 0.555627 | [
"@testset \"$(@__FILE__)\" begin\n\n include(\"../refvals/hydrostatic_spindown_refvals.jl\")\n\n # simulation time\n timeend = FT(15 * 24 * 3600) # s\n tout = FT(24 * 3600) # s\n timespan = (tout, timeend)\n\n # DG polynomial order\n N = Int(4)\n\n # Domain resolution\n Nˣ = Int(5)\n N... |
f70bd5fdbd81a3e0a966c69edae9271ec76b4c57 | 396 | jl | Julia | test/runtests.jl | hendri54/CollegeEntry | bcbd6434fdd7f66944075b0b85efbfd8f6e6ac29 | [
"MIT"
] | null | null | null | test/runtests.jl | hendri54/CollegeEntry | bcbd6434fdd7f66944075b0b85efbfd8f6e6ac29 | [
"MIT"
] | null | null | null | test/runtests.jl | hendri54/CollegeEntry | bcbd6434fdd7f66944075b0b85efbfd8f6e6ac29 | [
"MIT"
] | null | null | null | using CollegeEntry, ModelObjectsLH, ModelParams
using Test, TestSetExtensions
include("test_helpers.jl")
@testset "All" begin
include("helpers_test.jl")
include("admissions_test.jl");
include("admission_prob_test.jl");
include("student_rankings_test.jl")
include("entry_test.jl");
include("entr... | 24.75 | 47 | 0.719697 | [
"@testset \"All\" begin\n include(\"helpers_test.jl\")\n include(\"admissions_test.jl\");\n include(\"admission_prob_test.jl\");\n include(\"student_rankings_test.jl\")\n include(\"entry_test.jl\");\n include(\"entry_decisions_test.jl\")\n include(\"entry_results_test.jl\")\nend"
] |
f70c3ff4968c391bb44e7f54b612f4bd73c46365 | 1,192 | jl | Julia | test/GLMesh.jl | cvdlab/ViewerGL.js | ae28d7808699f9c34add4ad265b68a84bfa14842 | [
"MIT"
] | 4 | 2019-07-25T23:07:18.000Z | 2021-09-05T18:38:20.000Z | test/GLMesh.jl | cvdlab/ViewerGL.js | ae28d7808699f9c34add4ad265b68a84bfa14842 | [
"MIT"
] | null | null | null | test/GLMesh.jl | cvdlab/ViewerGL.js | ae28d7808699f9c34add4ad265b68a84bfa14842 | [
"MIT"
] | 31 | 2019-10-09T14:09:51.000Z | 2022-03-31T14:52:35.000Z | using Test
using LinearAlgebraicRepresentation
Lar = LinearAlgebraicRepresentation
using ViewerGL
GL = ViewerGL
@testset "GLMesh.jl" begin
# function GLMesh()
@testset "GLMesh" begin
@test
@test
@test
@test
end
# function GLMesh(primitive)
@testset "GLMesh" begin
@test
... | 16.108108 | 64 | 0.589765 | [
"@testset \"GLMesh.jl\" begin\n\n # function GLMesh()\n @testset \"GLMesh\" begin\n @test\n @test\n @test\n @test\n end\n\n # function GLMesh(primitive)\n @testset \"GLMesh\" begin\n @test\n @test\n @test\n @test\n end\n\n # function releaseGpuResources(mesh::GL... |
f70ccf8b21eeac0bbd8a4ce08b4cb71e0206dba4 | 3,529 | jl | Julia | test/knr/testknr.jl | UnofficialJuliaMirrorSnapshots/SimilaritySearch.jl-053f045d-5466-53fd-b400-a066f88fe02a | 70c46490431ca7d0e5cf41052bc36afc4ba3c8fa | [
"Apache-2.0"
] | null | null | null | test/knr/testknr.jl | UnofficialJuliaMirrorSnapshots/SimilaritySearch.jl-053f045d-5466-53fd-b400-a066f88fe02a | 70c46490431ca7d0e5cf41052bc36afc4ba3c8fa | [
"Apache-2.0"
] | null | null | null | test/knr/testknr.jl | UnofficialJuliaMirrorSnapshots/SimilaritySearch.jl-053f045d-5466-53fd-b400-a066f88fe02a | 70c46490431ca7d0e5cf41052bc36afc4ba3c8fa | [
"Apache-2.0"
] | null | null | null | using SimilaritySearch
using SimilaritySearch.SimilarReferences
using Test
function test_vectors(create_index, dist::Function, ksearch, nick)
@testset "indexing vectors with $nick and $dist" begin
n = 1000 # number of items in the dataset
m = 100 # number of queries
dim = 3 # vector's di... | 32.081818 | 151 | 0.597053 | [
"@testset \"indexing vectors\" begin\n # NOTE: The following algorithms are complex enough to say we are testing it doesn't have syntax errors, a more grained test functions are required\n ksearch = 10\n σ = 127\n κ = 3\n\n for dist in [\n l2_distance, # 1.0 -> metric, < 1.0 if dist is not a m... |
f70e234e93c6e69904c72f38c7eaec1a83d715df | 1,759 | jl | Julia | test/rountines.jl | UnofficialJuliaMirror/YaoBlocks.jl-418bc28f-b43b-5e0b-a6e7-61bbc1a2c1df | 703091b543e95e6e4a3d7fe451c29ce0dd423c73 | [
"Apache-2.0"
] | null | null | null | test/rountines.jl | UnofficialJuliaMirror/YaoBlocks.jl-418bc28f-b43b-5e0b-a6e7-61bbc1a2c1df | 703091b543e95e6e4a3d7fe451c29ce0dd423c73 | [
"Apache-2.0"
] | null | null | null | test/rountines.jl | UnofficialJuliaMirror/YaoBlocks.jl-418bc28f-b43b-5e0b-a6e7-61bbc1a2c1df | 703091b543e95e6e4a3d7fe451c29ce0dd423c73 | [
"Apache-2.0"
] | null | null | null | using Test, YaoBlocks, LuxurySparse, YaoBase
using YaoBlocks.ConstGate
import YaoBlocks: u1mat, unmat, cunmat, unij!
@testset "dense-u1mat-unmat" begin
nbit = 4
mmm = Rx(0.5) |> mat
m1 = u1mat(nbit, mmm, 2)
m2 = linop2dense(v -> instruct!(v, mmm, 2), nbit)
m3 = unmat(nbit, mmm, (2,))
@test m1 ≈... | 30.327586 | 92 | 0.529847 | [
"@testset \"dense-u1mat-unmat\" begin\n nbit = 4\n mmm = Rx(0.5) |> mat\n m1 = u1mat(nbit, mmm, 2)\n m2 = linop2dense(v -> instruct!(v, mmm, 2), nbit)\n m3 = unmat(nbit, mmm, (2,))\n @test m1 ≈ m2\n @test m1 ≈ m3\n\n # test control not\n ⊗ = kron\n res = mat(I2) ⊗ mat(I2) ⊗ mat(P1) ⊗ m... |
f712c2d65d4c6d110cc2b0191f55497c456cc7a7 | 945 | jl | Julia | Projects/Projet_Optinum/test/runtests.jl | faicaltoubali/ENSEEIHT | 6db0aef64d68446b04f17d1eae574591026002b5 | [
"Apache-2.0"
] | null | null | null | Projects/Projet_Optinum/test/runtests.jl | faicaltoubali/ENSEEIHT | 6db0aef64d68446b04f17d1eae574591026002b5 | [
"Apache-2.0"
] | null | null | null | Projects/Projet_Optinum/test/runtests.jl | faicaltoubali/ENSEEIHT | 6db0aef64d68446b04f17d1eae574591026002b5 | [
"Apache-2.0"
] | null | null | null | using Markdown
using Test
using LinearAlgebra
using TestOptinum
using Optinum
include("../src/Algorithme_De_Newton.jl")
include("../src/Gradient_Conjugue_Tronque.jl")
include("../src/Lagrangien_Augmente.jl")
include("../src/Pas_De_Cauchy.jl")
include("../src/Regions_De_Confiance.jl")
#TestOptinum.cacher_stacktrace()
... | 27.794118 | 70 | 0.812698 | [
"@testset \"Test SujetOptinum\" begin\n\t# Tester l'algorithme de Newton\n\ttester_algo_newton(affiche,Algorithme_De_Newton)\n\n\t# Tester l'algorithme du pas de Cauchy\n\ttester_pas_de_cauchy(affiche,Pas_De_Cauchy)\n\n\t# Tester l'algorithme du gradient conjugué tronqué\n\ttester_gct(affiche,Gradient_Conjugue_Tron... |
f71360a2dafb0db950b40e740ced0cc7c4d67b27 | 1,820 | jl | Julia | test/test_returning_original.jl | TheRoniOne/Cleaner | 7279c8e8e92a9763ed72f8614f9a77ddbd40fade | [
"MIT"
] | 16 | 2021-08-20T10:07:04.000Z | 2022-02-07T18:09:40.000Z | test/test_returning_original.jl | TheRoniOne/Cleaner | 7279c8e8e92a9763ed72f8614f9a77ddbd40fade | [
"MIT"
] | 2 | 2021-08-17T06:09:49.000Z | 2022-02-06T01:36:49.000Z | test/test_returning_original.jl | TheRoniOne/Cleaner | 7279c8e8e92a9763ed72f8614f9a77ddbd40fade | [
"MIT"
] | null | null | null | using Test
using Cleaner:
materializer,
compact_table_ROT,
compact_columns_ROT,
compact_rows_ROT,
delete_const_columns_ROT,
polish_names_ROT,
reinfer_schema_ROT,
row_as_names_ROT,
rename_ROT,
drop_missing_ROT,
add_index_ROT
using DataFrames: DataFrame
@testset "ROT functions... | 31.37931 | 88 | 0.590659 | [
"@testset \"ROT functions are working as expected\" begin\n testRM1 = DataFrame(;\n A=[missing, missing, missing], B=[1, missing, 3], C=[\"x\", \"\", \"z\"]\n )\n\n @test compact_columns_ROT(testRM1) isa DataFrame\n @test compact_rows_ROT(testRM1) isa DataFrame\n @test compact_table_ROT(testRM... |
f7139c61b9baf05db45b88230b03c8047a37b777 | 2,615 | jl | Julia | test/testProductReproducable.jl | dehann/iSAM.jl | 61869753a76717b1019756d09785a784fdafe3ab | [
"MIT"
] | null | null | null | test/testProductReproducable.jl | dehann/iSAM.jl | 61869753a76717b1019756d09785a784fdafe3ab | [
"MIT"
] | null | null | null | test/testProductReproducable.jl | dehann/iSAM.jl | 61869753a76717b1019756d09785a784fdafe3ab | [
"MIT"
] | null | null | null | # test for conv and product repeatability
using Test
using Statistics
using IncrementalInference
##
@testset "forward backward convolutions and products sequence" begin
fg = initfg()
addVariable!(fg, :a, ContinuousScalar)
addVariable!(fg, :b, ContinuousScalar)
addVariable!(fg, :c, ContinuousScalar)
addVariable!(f... | 25.144231 | 83 | 0.676482 | [
"@testset \"forward backward convolutions and products sequence\" begin\n\nfg = initfg()\n\naddVariable!(fg, :a, ContinuousScalar)\naddVariable!(fg, :b, ContinuousScalar)\naddVariable!(fg, :c, ContinuousScalar)\naddVariable!(fg, :d, ContinuousScalar)\naddVariable!(fg, :e, ContinuousScalar)\n\naddFactor!(fg, [:a], P... |
f7153aaee71132dc4b60ff01c3f91af6c17752a3 | 5,750 | jl | Julia | test/runtests.jl | burmecia/OpenAIGym.jl | 087bec95d13ca85216a0eaa7d47f50cda2867367 | [
"MIT"
] | 86 | 2017-02-24T20:25:05.000Z | 2022-03-31T04:50:07.000Z | test/runtests.jl | burmecia/OpenAIGym.jl | 087bec95d13ca85216a0eaa7d47f50cda2867367 | [
"MIT"
] | 31 | 2017-08-06T17:27:08.000Z | 2020-08-05T16:05:07.000Z | test/runtests.jl | burmecia/OpenAIGym.jl | 087bec95d13ca85216a0eaa7d47f50cda2867367 | [
"MIT"
] | 30 | 2017-03-20T22:06:01.000Z | 2021-09-24T04:38:33.000Z | using OpenAIGym
using PyCall
using Test
"""
`function time_steps(env::GymEnv{T}, num_eps::Int) where T`
run through num_eps eps, recording the time taken for each step and
how many steps were made. Doesn't time the `reset!` or the first step of each
episode (since higher chance that it's slower/faster than the rest, ... | 33.430233 | 105 | 0.488348 | [
"@testset \"Gym Basics\" begin\n\n pong = GymEnv(:Pong, :v4)\n pongnf = GymEnv(:PongNoFrameskip, :v4)\n pacman = GymEnv(:MsPacman, :v4)\n pacmannf = GymEnv(:MsPacmanNoFrameskip, :v4)\n cartpole = GymEnv(:CartPole)\n bj = GymEnv(:Blackjack)\n\n allenvs = [pong, pongnf, pacman, pacmannf, cartpole... |
f7183b3be5ea2b30e86fc2f42f90233e708e517b | 2,245 | jl | Julia | test/runtests.jl | maarten-keijzer/AdaptiveWindow.jl | 5bd90a475110ac5f6dd88226286455da0f8d87bf | [
"MIT"
] | 1 | 2022-01-04T13:50:24.000Z | 2022-01-04T13:50:24.000Z | test/runtests.jl | maarten-keijzer/AdaptiveWindow.jl | 5bd90a475110ac5f6dd88226286455da0f8d87bf | [
"MIT"
] | null | null | null | test/runtests.jl | maarten-keijzer/AdaptiveWindow.jl | 5bd90a475110ac5f6dd88226286455da0f8d87bf | [
"MIT"
] | null | null | null |
using AdaptiveWindows
using Test
@testset verbose=true "Adaptive Mean" begin
@testset "Mean Computation " begin
m = AdaptiveMean(δ = 1e-9)
r = randn(1000)
fit!(m, r)
m1 = sum(r) / length(r)
m2 = value(m)
@test m1 ≈ m2
ad = AdaptiveMean()
# This... | 23.385417 | 69 | 0.50245 | [
"@testset verbose=true \"Adaptive Mean\" begin\n\n @testset \"Mean Computation \" begin\n m = AdaptiveMean(δ = 1e-9)\n\n r = randn(1000)\n\n fit!(m, r)\n\n m1 = sum(r) / length(r)\n m2 = value(m)\n\n @test m1 ≈ m2\n ad = AdaptiveMean()\n\n # This should not... |
f71fdd500cffb77f7512f74f826a1a508b234e8f | 34,448 | jl | Julia | test/runtests.jl | bkamins/Statistics.jl | 81a1cdd6c2105d3e50f76375630bbed4744e67c1 | [
"MIT"
] | null | null | null | test/runtests.jl | bkamins/Statistics.jl | 81a1cdd6c2105d3e50f76375630bbed4744e67c1 | [
"MIT"
] | null | null | null | test/runtests.jl | bkamins/Statistics.jl | 81a1cdd6c2105d3e50f76375630bbed4744e67c1 | [
"MIT"
] | null | null | null | # This file is a part of Julia. License is MIT: https://julialang.org/license
using Statistics, Test, Random, LinearAlgebra, SparseArrays
using Test: guardseed
Random.seed!(123)
@testset "middle" begin
@test middle(3) === 3.0
@test middle(2, 3) === 2.5
let x = ((floatmax(1.0)/4)*3)
@test middle(x... | 40.102445 | 175 | 0.536054 | [
"@testset \"middle\" begin\n @test middle(3) === 3.0\n @test middle(2, 3) === 2.5\n let x = ((floatmax(1.0)/4)*3)\n @test middle(x, x) === x\n end\n @test middle(1:8) === 4.5\n @test middle([1:8;]) === 4.5\n\n # ensure type-correctness\n for T in [Bool,Int8,Int16,Int32,Int64,Int128,UI... |
f720458e4c141a29498437c4c4276797a74a93c1 | 1,913 | jl | Julia | test/runtests.jl | JuliaGeo/GDAL.jl | 3838e938642712cf8a98c52df5937dcfdb19221e | [
"MIT"
] | 61 | 2018-07-30T12:45:24.000Z | 2022-03-31T20:23:46.000Z | test/runtests.jl | JuliaGeo/GDAL.jl | 3838e938642712cf8a98c52df5937dcfdb19221e | [
"MIT"
] | 67 | 2018-06-11T15:59:17.000Z | 2022-03-02T21:42:54.000Z | test/runtests.jl | JuliaGeo/GDAL.jl | 3838e938642712cf8a98c52df5937dcfdb19221e | [
"MIT"
] | 14 | 2018-12-03T22:05:51.000Z | 2021-09-30T10:58:04.000Z | using GDAL
using Test
@testset "GDAL" begin
# drivers
# before being able to use any drivers, they must be registered first
GDAL.gdalallregister()
version = GDAL.gdalversioninfo("--version")
n_gdal_driver = GDAL.gdalgetdrivercount()
n_ogr_driver = GDAL.ogrgetdrivercount()
@info """$versio... | 33.561404 | 79 | 0.679038 | [
"@testset \"GDAL\" begin\n\n # drivers\n # before being able to use any drivers, they must be registered first\n GDAL.gdalallregister()\n\n version = GDAL.gdalversioninfo(\"--version\")\n n_gdal_driver = GDAL.gdalgetdrivercount()\n n_ogr_driver = GDAL.ogrgetdrivercount()\n @info \"\"\"$version\... |
f7215512da0154c3cb3b231e83d4d4e0ca40097a | 2,666 | jl | Julia | test/test_fileio.jl | chenspc/OWEN.jl | 842c8672dbc001180d980430e20652101929f32f | [
"MIT"
] | null | null | null | test/test_fileio.jl | chenspc/OWEN.jl | 842c8672dbc001180d980430e20652101929f32f | [
"MIT"
] | 2 | 2019-11-13T23:18:11.000Z | 2020-02-08T16:40:57.000Z | test/test_fileio.jl | chenspc/OWEN.jl | 842c8672dbc001180d980430e20652101929f32f | [
"MIT"
] | 1 | 2020-02-08T10:46:07.000Z | 2020-02-08T10:46:07.000Z | using Kahuna
using Test
@testset "kahuna_read" begin
@testset ".dm3 files" begin
@test 2 + 2 == 4
end
@testset ".dm4 files" begin
@test 2 + 2 == 4
end
@testset ".hdf5/.h5 files" begin
@test 2 + 2 == 4
end
@testset ".mat files" begin
# matfile = "test/samp... | 33.746835 | 127 | 0.594524 | [
"@testset \"kahuna_read\" begin\n\n @testset \".dm3 files\" begin\n @test 2 + 2 == 4\n end\n\n @testset \".dm4 files\" begin\n @test 2 + 2 == 4\n end\n\n @testset \".hdf5/.h5 files\" begin\n @test 2 + 2 == 4\n end\n\n @testset \".mat files\" begin\n # matfile = \"tes... |
f7262dc1d65caed99f539aa39adc09adecee3524 | 1,713 | jl | Julia | test/simple_runner_tests.jl | grahamstark/ScottishTaxBenefitModel.jl | 42ca32a100c862c58bbcd98f6264f08d78453b5c | [
"MIT"
] | null | null | null | test/simple_runner_tests.jl | grahamstark/ScottishTaxBenefitModel.jl | 42ca32a100c862c58bbcd98f6264f08d78453b5c | [
"MIT"
] | null | null | null | test/simple_runner_tests.jl | grahamstark/ScottishTaxBenefitModel.jl | 42ca32a100c862c58bbcd98f6264f08d78453b5c | [
"MIT"
] | null | null | null | using Test
using CSV
using DataFrames
using StatsBase
using BenchmarkTools
using ScottishTaxBenefitModel
using ScottishTaxBenefitModel.GeneralTaxComponents
using ScottishTaxBenefitModel.STBParameters
using ScottishTaxBenefitModel.Runner: do_one_run!
using ScottishTaxBenefitModel.RunSettings: Settings, MT_Routing
using... | 32.320755 | 85 | 0.725044 | [
"@testset \"basic run timing\" begin\n for mt in instances( MT_Routing )\n println( \"starting run using $mt routing\")\n @time basic_run( print_test=true, mtrouting = mt )\n end\n # @benchmark frames = \n # print(t)\nend"
] |
f727f80483dbefe80bf5db5ac82e2786aea040ee | 1,036 | jl | Julia | test/runtests.jl | mauro3/course-101-0250-00-L6Testing.jl | c7d47e770d5eabbf7f28784f9a9bd279a3042af8 | [
"MIT"
] | 1 | 2022-03-01T09:48:55.000Z | 2022-03-01T09:48:55.000Z | test/runtests.jl | mauro3/course-101-0250-00-L6Testing.jl | c7d47e770d5eabbf7f28784f9a9bd279a3042af8 | [
"MIT"
] | null | null | null | test/runtests.jl | mauro3/course-101-0250-00-L6Testing.jl | c7d47e770d5eabbf7f28784f9a9bd279a3042af8 | [
"MIT"
] | 1 | 2021-11-02T10:16:55.000Z | 2021-11-02T10:16:55.000Z | using Test, ReferenceTests, BSON
include("../scripts/car_travels.jl")
## Unit tests
@testset "update_position" begin
@test update_position(0.0, 10, 1, 1, 200)[1] ≈ 10.0
@test update_position(0.0, 10, 1, 1, 200)[2] == 1
@test update_position(0.0, 10, -1, 1, 200)[1] ≈ -10.0
@test update_position(0.0, 1... | 28.777778 | 65 | 0.642857 | [
"@testset \"update_position\" begin\n @test update_position(0.0, 10, 1, 1, 200)[1] ≈ 10.0\n @test update_position(0.0, 10, 1, 1, 200)[2] == 1\n\n @test update_position(0.0, 10, -1, 1, 200)[1] ≈ -10.0\n @test update_position(0.0, 10, -1, 1, 200)[2] == 1\n\n @test update_position(0.0, 10, -1, 1, 200)[1... |
f72e3f7fe6055a37c495d6361bfec1323eaa14a6 | 89 | jl | Julia | test/runtests.jl | Shoram444/MPThemes.jl | 86a6699f70a3b7f77d6ae6a248b285cb46f26852 | [
"MIT"
] | null | null | null | test/runtests.jl | Shoram444/MPThemes.jl | 86a6699f70a3b7f77d6ae6a248b285cb46f26852 | [
"MIT"
] | null | null | null | test/runtests.jl | Shoram444/MPThemes.jl | 86a6699f70a3b7f77d6ae6a248b285cb46f26852 | [
"MIT"
] | null | null | null | using MPThemes
using Test
@testset "MPThemes.jl" begin
# Write your tests here.
end
| 12.714286 | 28 | 0.730337 | [
"@testset \"MPThemes.jl\" begin\n # Write your tests here.\nend"
] |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 16