Projects
Kolab:Winterfell
elixir
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 3
View file
elixir-1.3.3-stdout-already-captured.patch
Added
@@ -0,0 +1,25 @@ +diff -ur elixir-1.3.3.orig/lib/elixir/test/elixir/kernel/typespec_test.exs elixir-1.3.3/lib/elixir/test/elixir/kernel/typespec_test.exs +--- elixir-1.3.3.orig/lib/elixir/test/elixir/kernel/typespec_test.exs 2016-09-17 17:47:40.000000000 +0200 ++++ elixir-1.3.3/lib/elixir/test/elixir/kernel/typespec_test.exs 2017-05-12 14:00:21.778456372 +0200 +@@ -505,21 +505,6 @@ + specs(module) + end + +- test "@spec(spec) for unreachable private function" do +- # Run it inside capture_io/2 so that the "my_fun/1 is unused" +- # warning doesn't get printed among the ExUnit test results. +- output = ExUnit.CaptureIO.capture_io :stderr, fn -> +- module = test_module do +- defp my_fun(x), do: x +- @spec my_fun(integer) :: integer +- end +- +- assert [] == specs(module) +- end +- +- assert output =~ "function my_fun/1 is unused" +- end +- + test "@spec(spec) with guards" do + module = test_module do + def my_fun1(x), do: x
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.