Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:26
erlang
otp_src_26.2.3-lib-kernel-test-doc.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File otp_src_26.2.3-lib-kernel-test-doc.patch of Package erlang
diff -Ndurp otp_src_26.2.3/lib/kernel/test/code_coverage_SUITE.erl otp_src_26.2.3-lib-kernel-test-doc/lib/kernel/test/code_coverage_SUITE.erl --- otp_src_26.2.3/lib/kernel/test/code_coverage_SUITE.erl 2024-03-08 22:13:54.834936854 +0200 +++ otp_src_26.2.3-lib-kernel-test-doc/lib/kernel/test/code_coverage_SUITE.erl 2024-03-08 22:15:07.253407420 +0200 @@ -78,26 +78,26 @@ get_coverage(Config) -> do_get_coverage(PrivDir) -> M = get_coverage_test, - S = ~""" - -module(get_coverage_test). - -export([fact/1,fib/1]). + S = <<" +-module(get_coverage_test). +-export([fact/1,fib/1]). - fact(N) when is_integer(N), N >= 0 -> %4 - fact(N, 1). %5 +fact(N) when is_integer(N), N >= 0 -> %4 + fact(N, 1). %5 - fact(0, P) -> - P; %8 - fact(N, P) -> - fact(N - 1, P * N). %10 +fact(0, P) -> + P; %8 +fact(N, P) -> + fact(N - 1, P * N). %10 - fib(N) -> - fib(N, 0, 1). %13 +fib(N) -> + fib(N, 0, 1). %13 - fib(0, _, B) -> - B; %16 - fib(N, A, B) -> - fib(N - 1, B, A + B). %18 - """, +fib(0, _, B) -> + B; %16 +fib(N, A, B) -> + fib(N - 1, B, A + B). %18 +">>, ErlFile = filename:join(PrivDir, atom_to_list(M) ++ ".erl"), ok = file:write_file(ErlFile, S),
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor