search for: test_

Displaying 20 results from an estimated 70 matches for "test_".

Did you mean: test
2014 Feb 21
6
[LLVMdev] make check issue with llvm-cov
.../home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp cd /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp cp /home/rkotler/workspace/llvm/test/tools/llvm-cov/Inputs/test* . /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c | diff -u test_no_options.output - diff -aub test_no_options.cpp.gcov test.cpp.gcov diff -aub test_no_options.h.gcov test.h.gcov mkdir -p /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/objdir cp test.gcno test.gcda /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.te...
2011 Dec 28
2
Gale-Shapley Algorithm for R
...,value=TRUE){ s <- sort(x, index.return=TRUE) if(value==TRUE){s$x[n]} else{s$ix[n]}} # 2: max.n <- function(x,n,value=TRUE){ s <- sort(x, decreasing=TRUE, index.return=TRUE) if(value==TRUE){s$x[n]} else{s$ix[n]}} ############################################################# s <- NULL test_s <-NULL loop <- 2 # O loop ? necess?rio a partir do 2. step.1 <- matrix(0,ncol=n, nrow=m) step.2 <- matrix(0,ncol=n, nrow=m) store <- NULL r <- NULL # Men proposing first: if (first==1) { step.1 <- matrix(0,ncol=n, nrow=m) for (i in 1:n) { step.1[i,][p...
2006 Dec 14
3
Stubbing constructiors
...initialize( stuff ) end end X.initialize("bla") However stubbing it doesn,t: require ''test/unit'' require ''stubba'' class X def X.initialize( stuff ) end end class XTest < Test::Unit::TestCase def test_ X.stubs(:initialize).with("bla") X.initialize("bla") end end Ruby lets me know that: Loaded suite /tmp/foo Started E(eval):1: warning: removing `initialize'' may cause serious problem Finished in 0.002625 seconds. 1) Error: t...
2010 Apr 29
2
dopar parallel assignments
Hi guys, I was wondering why this piece of code doesn't work: foreach (i = c(1.25,1.50)) %dopar% { assign(paste("test_",i,sep=""),i) } but, this does: foreach (i = c(1.25,1.50)) %do% { assign(paste("test_",i,sep=""),i) } Obviously, the difference is %dopar% vs. %do%. If I use %do%, I get objects test_1.25 and test_1.50, but I don't get these objects if I use %dopar% even th...
2009 Jul 14
2
averaging two matrices whilst ignoring missing values
...t different cells. I would like to average these matrices, but the NAs are preventing me. I get a "non-numeric argument to binary operator" error. That's the first problem. test<-read.csv("test.csv",header=FALSE) test2<-read.csv("test2.csv",header=FALSE) test_ <- as.matrix(test,na.rm=T) test2_ <- as.matrix(test2,na.rm=T) testave<- (test_+test2_)/2 ?? So off the bat I'm doing something wrong. How would I replace the missing values in one matrix with the corresponding non-missing values in another? It's acceptable to me if I on...
2008 Nov 11
3
Reading tables using a truncated name
Dear all, I am trying to read a bunch of csv files using read.table() that are named "test_xxxxxx.csv" where "xxxxxx" has no particular pattern. Is there a way of reading all the files by specifying a truncated file name e.g. "test_" with some wild card characters, or would I have to laboriously create some vector with the "xxxxxx" names and iterate or l...
2010 Sep 17
2
[LLVMdev] Emitting .zero
With LLVM 2.7, I see very inefficient emitting of zeros in .s files: test_: # @test_ .quad 0 # 0x0 .quad 0 # 0x0 .quad 0 # 0x0 .quad 0 # 0x0 .quad 0 # 0x0 .quad 0 # 0x0 [...] .quad 4...
2016 Jun 18
2
Facing problems with tests
...e to overcome. I've written my test cases using the DEFINE_TESTCASE macro and there are no errors while running a make check. But when I run a make check, it shows me these warnings: In file included from apitest.h:26:0, from api_cluster.cc:7: api_cluster.cc: In function ?bool test_euclidian_distance1()?: ./harness/testsuite.h:285:38: warning: no previous declaration for ?bool test_euclidian_distance1()? [-Wmissing-declarations] #define DEFINE_TESTCASE(S,COND) bool test_##S() ^ api_cluster.cc:16:1: note: in expansion of macro ?DEFINE_TEST...
2011 May 07
3
record call from iax to sip
...customer in IAX and i transfer this call to SIP client the conversation between customer and IAX client is recorded but the conversation between customer and sip extension is not recorded any help please thanks and regards extensions.conf exten => 223,1,Answer() exten => 223,2,MixMonitor(test_${UNIQUEID}.wav|av(0)V(0)) exten => 223,3,Dial(SIP/223) exten => 223,4,Hangup() -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110507/56430afa/attachment.htm>
2005 Oct 08
1
add leading 0s to %d from png() {was Automatic creation of file names}
...y to 'properly' format %d when plotting more than one page on png()? 'Properly' means to me with leading 0s, so that the PNGs become easy to navigate in a file/image browser. Lacking a better solution I ended up using the code below, but would much prefer something like png("test_%d.png",bg="white",width=1000,height=700) where %d could be formatted like formatC(%d,digits=0,wid=3,flag="0",mode="integer") Thank you, b. #---works, but is rather complicated--- pngno <- 0 ; i <- 1 for (w in 1:53) { if (i %in% c(4*0:100+1)) { png...
2007 Jun 13
0
Using Rcov with rspec_on_rails
...e of the following: * rename the files not to be ignored so they don''t match the above regexps * use --include-file to give a list of patterns for files not to be ignored * use --exclude-only to give the new list of regexps to match against * structure your code as follows: test/test_*.rb for the test cases lib/**/*.rb for the target source code whose coverage you want making sure that the test/test_*.rb files are loading from lib/, e.g. by using the -Ilib command-line argument, adding $:.unshift File.join(File.dirname(__FILE__), "..", "...
2007 May 17
0
strange results when using rcov with rspec
...more of the following: * rename the files not to be ignored so they don''t match the above regexps * use --include-file to give a list of patterns for files not to be ignored * use -- exclude-only to give the new list of regexps to match against * structure your code as follows: test/test_*.rb for the test cases lib/ **/*.rb for the target source code whose coverage you want making sure that the test/test_*.rb files are loading from lib/, e.g. by using the -Ilib command-line argument, adding $:.unshift File.join (File.dirname(__FILE__), "..", "lib") to test/...
2009 Mar 06
2
pdbedit dosen't send the sambaSID to the ldap
Hi people: I have a Debian etch stable with the latests updates. When I try to join a computer to the domain I create the machine on the ldap and its created with the following atributes: dn:cn=test$,ou=Machines,dc=domain,dc=org objectClass: top objectClass: inetOrgPerson objectClass: posixAccount uidNumber: 3123 uid: test$ cn: test$ sn: test$ gidNumber: 604 homeDirectory: /dev/null loginShell:
2006 May 29
3
mtext in trellis-loop & colorkey
...he first plot should be mainly gray (as it is the "lowest"), the last one mainly white (as it is the "highest")). Thanks very much! marius Here is a complete minimal example: remove(list=objects()) library(lattice) for(i in 1:4){ output_file_path<-paste("~/Desktop/test_",i,".png",sep="") x<-rep(seq(-3,3,length=50),50) y<-rep(seq(-3,3,length=50),each=50) z<-x*y+10*i trellis.device(png,color=F,file=output_file_path) print(wireframe (z~x*y,drape=T,distance=0,zoom=0.84,cuts=100,col.regions=gray (100:400/400),colorkey=list(tick....
2018 Apr 25
2
Help on understanding assume shape array processing and array descriptors in LLVM IR
...R, INTENT(IN) :: Li,Lj INTEGER, INTENT(IN) :: Istr, Iend, Jstr,Jend INTEGER :: i, j REAL*8, INTENT(INOUT) :: a(Li:,Lj:) REAL*8, INTENT(IN) :: b(Li:,Lj:) --snip-- I got the below LLVM IR, the parameters received. --snip-- ; Function Attrs: norecurse nounwind define void @test_(i64* noalias nocapture %a, i64* noalias nocapture readonly %b, i64* noalias nocapture readonly %li, i64* noalias nocapture readonly %lj, i64* noalias nocapture readonly %istr, i64* noalias nocapture readonly %iend, i64* noalias nocapture readonly %jstr, i64* noalias nocapture readonly %jend, i64* n...
2010 Sep 17
0
[LLVMdev] Emitting .zero
On Sep 16, 2010, at 5:12 PM, David Greene wrote: > With LLVM 2.7, I see very inefficient emitting of zeros in .s files: > > test_: # @test_ > .quad 0 # 0x0 > .quad 0 # 0x0 > .quad 0 # 0x0 > .quad 0 # 0x0 > .quad 0 # 0x0 > .quad 0 # 0x0 >...
2006 Jun 23
1
Best practices in test logging
Hi! My test suites are growing rapidly. Sometimes it is really hard to find meningful test output in long and bloated test.log. Do you have any advices or best practices when it comes to logging in tests? So far I have been using following policy: 1. Log test name in every test_* method I have a method that puts coloured test name in the log. The problem is that I have to invoke this method manually in each test method. And it looks quite ugly: def test_reject_duplicate_account_name_on_signup log_test_name("test_reject_duplicate_account_name_on_si...
2003 Apr 15
1
Building R package.
Hi! I am trying to build a package which calls an c function. It compiles it and installs it. But if i run R CMD check test_ the last output are: * checking examples ... ERROR Running examples failed. x<-1:10 and in the test-Ex.out file i find: > test(x) Error in .C("mytest", as.double(x), as.integer(lengthx)) : C/Fortran function name not in load table Execution halte May anyone take a loo...
2013 Aug 13
1
(no subject)
hello list, i have asterisk 1.4 installed i use MixMonitor to record all the inboud calls with the code below my question how can i do to save alse the sip extenssion 223 exten => 529,1,Answer() exten => 529,n,MixMonitor(test_${UNIQUEID}.wav|av(0)V(0)) exten => 529,n,Dial(SIP/223) exten => 529,n,Hangup() thanks and regards -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130813/36b338d7/attachment.htm>
2007 Nov 18
8
helper methods starting with should
Hi all, As an experiment in playing nice with others, we''ve added the ability in rspec''s trunk to do this: class ThingExamples < Spec::ExampleGroup def should_do_stuff ... end end This is how rspec 0.1 worked, and for people already comfortable with the classes/methods approach of Test::Unit, it is a more comfortable entry point to rspec. For others, however, it